This is a demo project to test Rhino3dm & Compute integration with Three JS. I created this project to test and learn how these new technologies were designed to work, and to generate boiler plate code for use in future projects.
It uses resources and samples provided by McNeel here for the basic setup, but also build on it with more reusable modules and new JS syntax.
The application bootstrapping and loading sequence of dependencies in the context of a Vue application was a bit tricky but seems to be working well.
Live Demo (Requires Rhino Compute Token, get yours here)
- A minimal VueJs project setup using Vue CLI
- My preferred setup for loading ThreeJS into a Vue project and setting up a configurable Scene
- A RhinoService module for making handling auth, Rhino Compute calls, and converting objects to a renderable object (eg. Brep to Meshes)
- Samples ThreeJs encoders to convert renderable Rhino Objects into ThreeJs equivalents (eg. Meshes, NurbsCurve, LineCurve, etc)
Contributions of any kind are welcome, including UI improvement, additional encoders, application setup, etc
$ yarn install
$ yarn run serve
License MIT