PrimitiveCollection
R2026bDescription
The PrimitiveCollection object represents a
primitive collection, a collection of 3D primitives, in the
RoadRunner Viewer scene graph. The PrimitiveCollection object enables
you to draw 3D primitives, such as points, lines, and triangles, in the scene graph. You can
use 3D primitives to highlight actor trajectories and road lanes, indicate sensor locations,
or outline the locations of expected events during simulation.
Creation
The function adds an empty primitive
collection to the scene graph of the specified RoadRunner Viewer object. For example, addPrimitivepc = addPrimitive(rrViewer); adds
a new PrimitiveCollection object, pc, that represents a
primitive collection in the scene graph of the RoadRunner Viewer object rrViewer.
Object Functions
| Draw points in RoadRunner Viewer scene graph |
| Draw connected line segments in RoadRunner Viewer scene graph |
| Draw filled triangles in RoadRunner Viewer scene graph |
| Draw triangles from 3D mesh file in RoadRunner Viewer scene graph |
reset | Clear 3D primitives from RoadRunner Viewer scene graph |
Examples
Version History
Introduced in R2026b
See Also
roadrunnerViewer | | Node | addPrimitive | addMeshNodedrawnow