Diferencia entre revisiones de «Obijuan:Notas:Python Object Oriented Mechanics (POOM)»

De WikiRobotics
Saltar a: navegación, buscar
 
(No se muestran 4 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
 +
== Opencascade ==
 +
 
* OpenCascade para python: [http://www.pythonocc.org/ http://www.pythonocc.org/]. Muy interesante!
 
* OpenCascade para python: [http://www.pythonocc.org/ http://www.pythonocc.org/]. Muy interesante!
 
** [http://julienbld.github.io/pycado/ pycado]. CAD en python que usa pythonocc
 
** [http://julienbld.github.io/pycado/ pycado]. CAD en python que usa pythonocc
  
 
* Opencascade github: [https://github.com/tpaviot/pythonocc https://github.com/tpaviot/pythonocc]
 
* Opencascade github: [https://github.com/tpaviot/pythonocc https://github.com/tpaviot/pythonocc]
 +
 +
* [http://trac.lecad.si/vaje/raw-attachment/wiki/PythonOcc/VisualizationOfGeometryWithUtilisingpythonOCC.pdf Documentación]
 +
 +
== Instalación en Ubuntu 13.10 ==
  
 
* Instalación de opencascade:
 
* Instalación de opencascade:
Línea 8: Línea 14:
 
  git clone https://github.com/tpaviot/pythonocc.git
 
  git clone https://github.com/tpaviot/pythonocc.git
  
Compilar la libreria geom:
+
=== Compilar la libreria geom (opcional) ===
 +
 
 
  cd pythoncc/src/contrib/geom-6.3.1.8
 
  cd pythoncc/src/contrib/geom-6.3.1.8
 
  mkdir cmake-build
 
  mkdir cmake-build
Línea 24: Línea 31:
 
  sudo make install
 
  sudo make install
  
Compilar smesh:
+
=== Compilar smesh (opcional) ===
 +
 
 +
cd python/src/contrib/smesh-5.1.2.2
 +
mkdir cmake-build
 +
cd cmake-build
 +
cmake-gui
 +
 +
 
 +
Darle a configure y Generate:
 +
 
 +
modificar las variables:
 +
  OCE_INCLUDE_PATH  /usr/include/oce
 +
  OCE_LIB_PATH      /usr/lib
 +
 
 +
 
 +
Pulsar configure y Generate
 +
modificar las variables:
 +
  OCE_INCLUDE_PATH  /usr/include/oce
 +
  OCE_LIB_PATH      /usr/lib
 +
 
 +
Pulsar otra vez configure y generate
 +
make
 +
sudo make install
 +
 
 +
=== Compilar pythonocc ===
  
 
Es necesario que el compilador de fortran esté instalado:
 
Es necesario que el compilador de fortran esté instalado:
 
  sudo apt-get install gfortran
 
  sudo apt-get install gfortran
  
cd python/src/contrib/smesh-5.1.2.2
+
cd pythonocc
 
  mkdir cmake-build
 
  mkdir cmake-build
 
  cd cmake-build
 
  cd cmake-build
  cmake-gui
+
  cmake-gui ..
  
 
Pulsar configure y Generate
 
Pulsar configure y Generate
Línea 39: Línea 70:
 
   OCE_LIB_PATH      /usr/lib
 
   OCE_LIB_PATH      /usr/lib
  
Pulsar otra vez configure y generate
+
Pulsar en el check de las librerias GEOM y SMESH
 +
volver a pulsar configure y Generate
 +
 
 +
Compilar:
 +
make
 +
sudo make install

Revisión actual del 06:20 25 ene 2014

Opencascade

Instalación en Ubuntu 13.10

  • Instalación de opencascade:

Descargar del github:

git clone https://github.com/tpaviot/pythonocc.git

Compilar la libreria geom (opcional)

cd pythoncc/src/contrib/geom-6.3.1.8
mkdir cmake-build
cd cmake-build
cmake-gui ..

Darle a Configure y luego a Generate

modificar las variables:

 OCE_INCLUDE_PATH  /usr/include/oce
 OCE_LIB_PATH      /usr/lib

Volver a dar a Configure y Generate. Salir del cmake y compilar con make:

make
sudo make install

Compilar smesh (opcional)

cd python/src/contrib/smesh-5.1.2.2
mkdir cmake-build
cd cmake-build
cmake-gui

Darle a configure y Generate:

modificar las variables:

 OCE_INCLUDE_PATH  /usr/include/oce
 OCE_LIB_PATH      /usr/lib 


Pulsar configure y Generate modificar las variables:

 OCE_INCLUDE_PATH  /usr/include/oce
 OCE_LIB_PATH      /usr/lib

Pulsar otra vez configure y generate

make
sudo make install

Compilar pythonocc

Es necesario que el compilador de fortran esté instalado:

sudo apt-get install gfortran

cd pythonocc

mkdir cmake-build
cd cmake-build
cmake-gui ..

Pulsar configure y Generate modificar las variables:

 OCE_INCLUDE_PATH  /usr/include/oce
 OCE_LIB_PATH      /usr/lib

Pulsar en el check de las librerias GEOM y SMESH volver a pulsar configure y Generate

Compilar:

make
sudo make install