donalffons / opencascade.js

Port of the OpenCascade CAD library to JavaScript and WebAssembly via Emscripten.
https://ocjs.org/
GNU Lesser General Public License v2.1
582 stars 85 forks source link

How to import brep file with opencascade.js? #216

Open npuzl opened 1 year ago

npuzl commented 1 year ago

How to import brep file with opencascade.js?

donalffons commented 1 year ago

That should work using BRepTools.Read. You first have to write your BREP file to "disk", e.g. using oc.fs.writeFile - there should be other issues here that demonstrate how to do that (for STEP files).