PythonOCC/fr: Difference between revisions

From FreeCAD Documentation
(création et traduction de la page)
 
(Updating to match new version of source page)
Line 1: Line 1:
[http://www.pythonocc.org/ PythonOCC] is a pretty young and active project that aims at binding the whole range of OpenCasCADe functions into a python module. This is a very different approach than FreeCAD, where only certain components of OpenCasCade are used, resulting in a much simpler structure.
=PythonOCC/fr=
[http://www.pythonocc.org/ PythonOCC] est un projet assez jeune et actit, qui vise à lier l'ensemble des fonctions '''OpenCascade''' dans un module '''Python'''. C'est une approche très différente de celle FreeCAD, où, seuls certains composants d''''OpenCascade''' sont utilisés, résultant en une structure beaucoup plus simple.


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.
[http://www.pythonocc.org/ PythonOCC], d'autre part, il vous donne accès à toutes les classes et fonctions '''OCC''', c'est très '''complexe''', mais aussi très '''puissant'''. Il est donc un complément très utile pour FreeCAD. Lorsque dans '''FreeCAD''', vous êtes limité par les fonctionnalités '''OCC''' disponibles dans vos scripts python, il est temps de charger '''pythonOCC''' [[File:FreeCAD05_Tango_Text-x-python.svg|24px]].


Actuellement, dans le [[Part_Module/fr|module part]], nous avons les méthodes : '''Part.__toPythonOCC__ ()''' et '''Part.__fromPythonOCC__ ()''' pour échanger des entités '''TopoDS_Shape''' à partir de vers [http://www.pythonocc.org/ PythonOCC].<br>
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.
Ceci permet d'utiliser toute la puissance de l''''OCC''' en utilisant [http://www.pythonocc.org/ PythonOCC] dans '''Python''', puis, ajouter les formes résultantes et revenir à FreeCAD.


[[Category:Hubs]]
[[Category:Poweruser_Documentation]]


{{clear}}
{{languages/fr | {{en|PythonOCC}} {{es|PythonOCC/es}} }}
<languages/>

Revision as of 19:50, 18 May 2014

PythonOCC is a pretty young and active project that aims at binding the whole range of OpenCasCADe functions into a python module. This is a very different approach than FreeCAD, where only certain components of OpenCasCade are used, resulting in a much simpler structure.

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.