PrimitiveType

The type of a geometric primitive, i.e., points, lines, and triangles.
Properties:
Name Type Description
POINTS Number Points primitive where each vertex (or index) is a separate point.
LINES Number Lines primitive where each two vertices (or indices) is a line segment. Line segments are not necessarily connected.
LINE_LOOP Number 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.
LINE_STRIP Number Line strip primitive where each vertex (or index) after the first connects a line to the previous vertex.
TRIANGLES Number Triangles primitive where each three vertices (or indices) is a triangle. Triangles do not necessarily share edges.
TRIANGLE_STRIP Number 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.
TRIANGLE_FAN Number 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.

Members

static constant Cesium.PrimitiveType.LINE_LOOP : Number

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.
Default Value: WebGLConstants.LINE_LOOP

static constant Cesium.PrimitiveType.LINE_STRIP : Number

Line strip primitive where each vertex (or index) after the first connects a line to the previous vertex.
Default Value: WebGLConstants.LINE_STRIP

static constant Cesium.PrimitiveType.LINES : Number

Lines primitive where each two vertices (or indices) is a line segment. Line segments are not necessarily connected.
Default Value: WebGLConstants.LINES

static constant Cesium.PrimitiveType.POINTS : Number

Points primitive where each vertex (or index) is a separate point.
Default Value: WebGLConstants.POINTS

static constant Cesium.PrimitiveType.TRIANGLE_FAN : Number

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.
Default Value: WebGLConstants.TRIANGLE_FAN

static constant Cesium.PrimitiveType.TRIANGLE_STRIP : Number

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.
Default Value: WebGLConstants.TRIANGLE_STRIP

static constant Cesium.PrimitiveType.TRIANGLES : Number

Triangles primitive where each three vertices (or indices) is a triangle. Triangles do not necessarily share edges.
Default Value: WebGLConstants.TRIANGLES