SoBufferedShapenumVertices Property |
Total number of vertices/indices or number of vertices/indices to be used per primitive.
Namespace: OIV.Inventor.Nodes
Specifically:
For the shape types POINTS, LINES, TRIANGLES and QUADS Only the first value is meaningful and it specifies the number of vertices to be used for rendering. Specifically:
For a list of points: numVertices should be the number of points to be drawn.
For a list of lines: numVertices should be num_lines * 2 where num_lines is the number of lines to be drawn.
For a list of quadrangles: numVertices should be num_quads * 4 where num_quads is the number of quadrangles to be drawn.
For a list of triangles: numVertices should be num_tri * 3 where num_tri is the number of triangles to be drawn.
For all other types: The number of values in this field specifies the number of primitives that will be drawn. Each value in the field specifies the number of vertices (or indices if given) to be used for each primitive.