4 ms·
There is an OpenCascade version compiled down to wasm [1] that we're currently using embedded in our own app. Rendering to WebGL is relatively straight-forward
by sfvisser 5y ago
There is an OpenCascade version compiled down to wasm [1] that we're currently using embedded in our own app. Rendering to WebGL is relatively straight-forward and the system as a whole works well. Gives me a lot of power when designing mechanical systems and running simulations on the resulting models. Perf of the CAD kernel on the web is not great, but 'just good enough'.
Troubleshooting issues is tricky though. If something doesn't work debugging is nearly impossible and the (C++) docs are very challenging.
OpenCascade is very powerful, but the ergonomics of the API aren't great. Writing a simple FP-style immutable wrapper around it has proven very fruitful and we can now describe relatively complicated models with a bare minimum of TypeScript code. Lot's of fun!
[1] https://github.com/gabrielcuvillier/opencascade-emscripten-port https://github.com/gabrielcuvillier/opencascade-emscripten-p...
- Asooka 5y agoWhat do you use for running simulations of your mechanical models?
- sfvisser 5y agoWe’re running some custom code to test basic robotic locomotion, we’re not doing anything fancy with material properties or stress testing. Very basic stuff, but still useful to quickly change your model in code and have your domain specific sims pick up on it automatically. Additional advantage is the ease of building custom UIs to configure your model and scenes.