PythonOCC

From FreeCAD Documentation
Revision as of 17:52, 26 November 2019 by Maker (talk | contribs) (Created page with "[http://www.pythonocc.org/ PythonOCC] ist ein Projekt, das darauf abzielt, den gesamten Funktionsumfang von OpenCasCADe in ein Python Modul zu integrieren. Dies ist ein andere...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

PythonOCC ist ein Projekt, das darauf abzielt, den gesamten Funktionsumfang von OpenCasCADe in ein Python Modul zu integrieren. Dies ist ein anderer Ansatz als FreeCAD, bei dem nur bestimmte Komponenten von OpenCasCade verwendet werden, was zu einer wesentlich einfacheren Struktur führt.

PythonOCC, on the other hand, since it provides you access to all of OCC classes and functions, is very complex, but also very powerful. It is therefore a very fine addition to FreeCAD. When you are limited by FreeCAD's available OCC functionality in your python scripts, it's time to load pythonOCC.

Currently in the Part module we have the methods: Part.__toPythonOCC__() and Part.__fromPythonOCC__() to exchange TopoDS_Shape entities to/from pythonOCC. This allows to use the full power of OCC in python (using pythonocc) and then put the resulting shapes back to FreeCAD.