I have a pretty simple and standard threejs application with an init() function that sets the scene with a PerspectiveCamera, AmbientLight, OrbitControls and a WebGLRenderer.
Now I want to load geometries (vertices, faces) from an input file (using html input tag) into my threejs application. Then the loaded geometries will be assigned to a MeshPhysicalMaterial and added to the scene in the threejs app.
What would be the best practice approach for loading these geometries?
First I thought about a simple csv or json file, but then I read that glTF would be the appropriate format. I tried to prepare the geometries in python using Trimesh and exported the Trimesh scene to a glb file. But then I have already a scene, whereas I just wanted to load the pure geometries (vertices, faces)? Or do I have a misconception here?
I’m sorry for the confusion in my post, but I’m a bit stuck as you might feel.
I would really appreciate someone to give me direction here!
Thanks a lot and regards,