encoding / decoding JS getMesh() format #255
Replies: 4 comments 20 replies
-
too soon. reading here seems to answer my question. I'll try to spend more time with the library first. lots of questions about performance relating to marshaling between JS and WASM. for the STL case, it would likely be faster to do the indexing in WASM than JS. |
Beta Was this translation helpful? Give feedback.
-
going in and out of ThreeJS BufferAttribute formats presents a significant amount of time spent in JS (for loops + accessors). would you consider adding a helper method that returns the flattened vertex and index arrays from meshes? |
Beta Was this translation helpful? Give feedback.
-
I am tracking the discussions, and like very much how far manifold has gone already. Looking fwd when I can find some time to play with wasm. And these extra steps for performance look very interesting. |
Beta Was this translation helpful? Give feedback.
-
@elalish I have starting playing with manifold and am able to run it in jscad.app. I maybe asking too soon but I would like to in the future explore using SharedArrayBuffer when getting mesh data from manifold. I have not yet come to concrete need for it, as I am still at early explorative phase, just wondering if someone has found it useful with manifold. |
Beta Was this translation helpful? Give feedback.
-
Is it assumed or required that the mesh is indexed? The example uses ThreeJS indexed geometries. Most of the meshes I deal with come from STLs and are not indexed. It's not hard to index them, but would be nice if it could be avoided.
Beta Was this translation helpful? Give feedback.
All reactions