How to load parasolid file(.x_t) in three js
AFAIK, there is no loader for Parasolid files. It’s a CAD format, right? In this case, you might want to export your files to e.g.
thank you for the reply
you are right its a cad format. there is one problem in the STL file is that we cannot apply different color in different parts rt? we already have lots of parasolid file. if there is any way we can convert this into object file then we can identify each part and color them and we have object loader in the three js as well
You can try to export to
OBJ. Both formats support vertex colors and
three.js has respective loaders.
In order to reduce file size, you should consider to convert
glTF in the next step.
AFAIK, no. Can’t you perform the conversion/export with your CAD tool?
no AFAIK.we are getting the parasolid files from the external provider.thats the problem. we already have thousands of parasolid files. so if we can convert them programatically to .obj then it will be helpful
There seem to be many tools for this. Just google “parasolid to obj”
ok thank you