scene_add_triangles
3D-view render sink. xyz is n_pts (x,y,z) triples; index arrays reference vertices by triple index.
This function shares its documentation with the rest of the 3D rendering group above.
Prototype
void (*scene_add_triangles)(Yu3dSceneCtx*, const double* xyz, uint32_t n_pts, const uint32_t* tris, uint32_t n_tris, float r, float g, float b)
Parameters
| Declaration | Name |
|---|---|
Yu3dSceneCtx* | — |
const double* xyz | xyz |
uint32_t n_pts | n_pts |
const uint32_t* tris | tris |
uint32_t n_tris | n_tris |
float r | r |
float g | g |
float b | b |
Returns
void
Same group (3D rendering)
Declared in sdk/include/yu3d_plugin.h. Reached through the host table: host->scene_add_triangles(…). Guard with YU3D_HOST_HAS(host, scene_add_triangles) if your plugin must also load in an older host.