3476fb651a
* Fixed WBX-341 * Fixed WBX-342 * Fix for WBX-343. Unused materials no longer pile up in MeshBatch materials * Unused materials no longer pile up in InstancedMeshBatch materials * Moved material cleaning at the begining of draw groups flatening for both instanced and non instances batches. Added a cached material lookup table for both instanced and non instanced speckle meshes. This fixes the issues with setMaterial and material instances we were seeing when diffing * Handled WBX-356 and WBX-357. Most important change here, is adding behavior for when a new draw groups is set which engulfs other existing draw groups. The previous lack of implementation for this particular case made filtering (for example) assign materials incorrectly * Fix for WBX-358. Line batch materials were not setting their opacity * WIP on fixing some issues with selection + coloring
The Speckle Viewer API 2.0
Documentation
Quick Reference guide here Complete documentation coming soon
Examples
You can find readily available examples here:
- Basic Setup
- Measurements Extension
- Obj Loader
- Expanding an Extension (Manipulating Objects)
- Custom Extension (Categorize)
Development
- run
yarnin the repo root to install and link all required dependencies. - run
yarn devin the viewer package (here) to start a dev build with automatic code refresing of the viewer code. - run
yarn devin the viewer-sandbox package to start the viewer sandbox.
Feedback
We would love to hear your feedback in this forum thread.
Community
If in trouble, the Speckle Community hangs out on the forum. Do join and introduce yourself! We're happy to help.
License
Unless otherwise described, the code in this repository is licensed under the Apache-2.0 License. If you have any questions, don't hesitate to get in touch with us via email.