PythonOCC

From FreeCAD Documentation
Revision as of 17:53, 26 November 2019 by Maker (talk | contribs) (Created page with "PythonOCC hingegen ist sehr komplex, aber auch sehr leistungsfähig, da es Dir Zugriff auf alle OCC Klassen und -Funktionen bietet. Es ist daher eine sehr gute Ergänzung zu F...")

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 hingegen ist sehr komplex, aber auch sehr leistungsfähig, da es Dir Zugriff auf alle OCC Klassen und -Funktionen bietet. Es ist daher eine sehr gute Ergänzung zu FreeCAD. Wenn Du durch die verfügbare OCC Funktionalität von FreeCAD in Deinen Python Skripten eingeschränkt bist, ist es an der Zeit, pythonOCC zu laden.

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.