Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

import .step file with three.js

Tags:

three.js

step

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 ?

like image 646
Guillaume Rebmann Avatar asked Nov 20 '13 18:11

Guillaume Rebmann


People also ask

What file types does three Js support?

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.

What programs can export to STEP file?

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.


2 Answers

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.

like image 69
user3015252 Avatar answered Sep 19 '22 22:09

user3015252


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.

like image 37
user3606324 Avatar answered Sep 22 '22 22:09

user3606324