ricosjp / truck

Truck is a Rust CAD Kernel.
Apache License 2.0
1.02k stars 53 forks source link

WASM/Javascript bindings #38

Closed MattFerraro closed 9 months ago

MattFerraro commented 1 year ago

Are you planning to create WASM builds and javascript bindings for truck? I think it would be very useful as a way of showcasing what the library is capable of. I'd be very interested in using such bindings if they existed to build an open source web-based CAD program!

ytanimura commented 1 year ago

Thank you for your issue.

truck-js is a js-binding with wasm. Simple modeling can be done. It is difficult to wrap all low-function APIs because generics are not available, but we would like to have a STEP-related high-function API. We would like to bind Scene and such, but we are holding off due to lack of testing because WebGPU is not quite stable.

MattFerraro commented 9 months ago

Thank you, that's perfect!