kovacsv / occt-import-js

The emscripten interface for OpenCascade import functionalities.
GNU Lesser General Public License v2.1
141 stars 23 forks source link

Export assembly back to step file #21

Closed longhan closed 1 year ago

longhan commented 1 year ago

Hi kovacsv,

Using occt-import-js. I can read multiple .stp file and loaded into threejs screen.

Can occt-import-js export back to .stp file as a whole assembly?

Thank in advance! LH

kovacsv commented 1 year ago

Hey,

The short answer is no.

The longer answer is that the library converts the boundary representation of the step model to a bunch of triangles. It means that all geometrical information stored in the file will be lost during the process, so I don't think it would make much sense to write the tesselated model back to a step file.

longhan commented 1 year ago

Thanks!