Export from OpenCascade, import into OpenSceneGraph

We have a modeling tool that uses OCC, and a 3D editor that uses OSG. I want to do this, export the model from the first tool and import into the second tool. I searched the Internet for several days, but I can not find a solution.

Three problems can solve my problem:

  • Exporter for OCC for export to OSG supported formats (.ive, .osg and many others),
  • OSG importer for import from supported OCC formats (.stp, .step, .igs, .iges, .brp, .brep),
  • A converter for converting two formats, one format supported by OCC and one format supported by OSG.

Has anyone done this before or knew anything that might help?

I am trying to avoid writing a custom exporter for OCC.

+3
source share
3 answers

I have found a solution. OpenCascade has an import / export example that can export VRML files without texture support. Some changes to the export code and some modifications in other parts (where the OCC model is represented by the VRML classes) were enough to successfully export my model to a VRML file. Then I built a VRML plugin for OpenSceneGraph and successfully imported the model.

+3
source

CADExchanger (based on OCC) does a pretty good job of converting between BRep and other formats (STEP, IGES, STL, VRML ...)

+3
source

pythonocc.org. , OSG ? STEP/IGES (python) OCC, , / OSG. ?

+2

Source: https://habr.com/ru/post/1727635/


All Articles