Click or drag to resize
SoBufferedShapenumVertices Property

Total number of vertices/indices or number of vertices/indices to be used per primitive.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public SoMFInt32 numVertices { get; }

Property Value

Type: SoMFInt32
Remarks

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.

See Also