tpaviot / oce

OpenCASCADE Community Edition (OCE): a community driven fork of the Open CASCADE library.
http://groups.google.com/group/oce-dev
GNU Lesser General Public License v2.1
820 stars 284 forks source link

Converting file formats #712

Open miclog opened 5 years ago

miclog commented 5 years ago

Is there a good way to write a file converter using OCE? Are there any existing examples to work from?

I would like to convert from STEP to X3D format.

The program SFA by NIST does a good job but might be slowed down by the Python interface and being in a self-contained executable. I'd like to try using the C++ library directly instead of loading it from Python using PythonOCC.

Stinkfist0 commented 5 years ago

Have you looked into IfcOpenShell/IfcConvert?

tpaviot commented 5 years ago

Have a look at https://github.com/tpaviot/pythonocc-demos/blob/master/examples/core_webgl_STEP_to_X3D.py

carpekd commented 4 years ago

Have a look at https://github.com/tpaviot/pythonocc-demos/blob/master/examples/core_webgl_STEP_to_X3D.py

Can this be done with OCE alone in C++?

tpaviot commented 4 years ago

Generally speaking, I don't know any python program that could not be done using c++