yucad3d

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

DeclarationName
Yu3dSceneCtx*
const double* xyzxyz
uint32_t n_ptsn_pts
const uint32_t* tristris
uint32_t n_trisn_tris
float rr
float gg
float bb

Returns

void

Same group (3D rendering)

scene_add_lines

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.