yucad3d

scene_add_lines

---- 3D-view render sink. xyz is n_pts (x,y,z) triples; index arrays reference vertices by triple index. ----

Prototype

void (*scene_add_lines)(Yu3dSceneCtx*, const double* xyz, uint32_t n_pts, const uint32_t* segs, uint32_t n_segs, float r, float g, float b, float width)

Parameters

DeclarationName
Yu3dSceneCtx*
const double* xyzxyz
uint32_t n_ptsn_pts
const uint32_t* segssegs
uint32_t n_segsn_segs
float rr
float gg
float bb
float widthwidth

Returns

void

Same group (3D rendering)

scene_add_triangles

Declared in sdk/include/yu3d_plugin.h. Reached through the host table: host->scene_add_lines(…). Guard with YU3D_HOST_HAS(host, scene_add_lines) if your plugin must also load in an older host.