Closed wxmerkt closed 5 years ago
This looks great, thank you! Copying the loaders into the source tree is fine: it would also be possible to wrap them up in node modules, but I don't think it's necessary or worth the effort.
One thing to note: the generated file dist/main.min.js
is intentionally checked into this repo, so I'm going to merge this PR and then make one more commit on master to update that generated file.
Thank you, Robin! I'll wait for your commit with the dist/main.min.js
to update the meshcat-python
PR in the morning - and will add two meshes as examples (I tested with locally available ones).
Hi Robin, Thank you for creating this awesome visualiser! We've been thinking of using it for a while and are currently integrating it with Pinocchio and Exotica.
This PR adds support for loading DAE and STL meshes by using the three.js loaders for these types.
Note, I've copied them into
src/
the same way you added the OBJLoader2 but I am not sure that is even necessary - and there are likely better ways to do it (in webpack?) - very open for suggestions here :-).I'll open the corresponding
meshcat-python
PR shortly.Thank you, Wolfgang