Closed MattFerraro closed 1 year ago
Thank you for your question.
There are APIs for handling meshes with JavaScript.
There is an example for using truck with WebGL. In script.js
,
index.html
(function onLoad
and render
).fileRead
), anddownloadObj
).incredible, thank you!
I've been able to generate Solids and Shells in Rust, but I'd like to create a triangle mesh that I can send to three.js for rendering. Clearly truck is capable of generating that mesh, since we can view the bottle with webGPU, but I can't figure out how to do it! Could you offer some pointers?