compas-dev / compas-dev/compas_viewer
BufferGeometry
- Dominant language
- Python
- Stars
- 12
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
When working with large amounts of data, for example FEA results, converting the data to COMPAS objects and then back to numerical results for the GPU buffers is extremely time consuming, and especially completely unnecessary.
In these scenarios, it would be better if the raw data can be placed directly into a buffer, with a specified structure. For example
```python
viewer.scene.add(BufferGeometry.from_points(points)) # points -> Nx3
viewer.scene.add(BufferGeometry.from_lines(points, lines)) # points -> Nx3, lines -> Nx2
viewer.scene.add(BufferGeometry.from_faces(points, faces)) # points -> Nx3, faces -> Nx3
...
```
Contributor guide
Assessment
This issue has not been assessed yet.