compas-dev / compas-dev/compas_viewer

BufferGeometry

Open
#154 0 comments 0 reactions 2 assignees Claimed by @PingHsunTsai View on GitHub
enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.