I would like to import a file ".step" to use it with Three.js but I don't know how to do it
I didn't found any topic, only "first step, second step "
Any one could help me please ?
The three. js library offers loaders for numerous file formats like FBX, Collada as well as OBJ but the recommended format for importing and exporting data is glTF. The great thing about glTF file format is that it is very compact and can be easily transmitted and also loading very fast.
The majority of CAD programs are capable of opening and exporting the Step file format extension. The most common programs for producing CAD drawings, and therefore Step/stp files, are SolidWorks, AutoCAD, Autodesk Inventor, Catia, PTC creo and Onshape.
Take a look at the example at http://www.pythonocc.org/news/experimental-webgl-renderer-towards-cad-in-a-browser/ to go from step file to viewing using three.js.
node-occ is not a viable option as it is missing OCE-0.13. You have to download OCE-0.14 and build it really not a good option. OpenCascade is good but requires you build an .NET Library in C++ this is not well documented as they want to try and sell you theirs. I have not tried PythonOCC as it is python and can be a bit hard to set up using .NET I am looking for more resources but have not found any your best bet is to build your own using the STEP reading technology.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With