addPrimitive
R2026bDescription
creates a primitive collection in the scene graph of the specified RoadRunner Viewer object pc = addPrimitive(rrViewer)rrViewer and returns a
PrimitiveCollection object, pc. The
PrimitiveCollection object enables you to draw 3D primitives, such
as points, lines, and triangles, in the RoadRunner Viewer scene graph. To organize your 3D primitives, you can create
multiple PrimitiveCollection objects. You can use 3D primitives to
highlight actor trajectories and road lanes, indicate sensor locations, or outline the
locations of expected events during simulation.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026b
See Also
roadrunnerViewer | | PrimitiveCollection | drawPoints | drawLinesdrawTriangles