PrimitiveType

The type of a geometric primitive, i.e., points, lines, and triangles.

Members

staticconstantPrimitiveType.LINE_LOOP :Number

0x0002. Line loop primitive where each vertex (or index) after the first connects a line to the previous vertex, and the last vertex implicitly connects to the first.

staticconstantPrimitiveType.LINE_STRIP :Number

0x0003. Line strip primitive where each vertex (or index) after the first connects a line to the previous vertex.

staticconstantPrimitiveType.LINES :Number

0x0001. Lines primitive where each two vertices (or indices) is a line segment. Line segments are not necessarily connected.

staticconstantPrimitiveType.POINTS :Number

0x0000. Points primitive where each vertex (or index) is a separate point.

staticconstantPrimitiveType.TRIANGLE_FAN :Number

0x0006. Triangle fan primitive where each vertex (or index) after the first two connect to the previous vertex and the first vertex forming a triangle. For example, this can be used to model a cone or circle.

staticconstantPrimitiveType.TRIANGLE_STRIP :Number

0x0005. Triangle strip primitive where each vertex (or index) after the first two connect to the previous two vertices forming a triangle. For example, this can be used to model a wall.

staticconstantPrimitiveType.TRIANGLES :Number

0x0004. Triangles primitive where each three vertices (or indices) is a triangle. Triangles do not necessarily share edges.