public enum PrimitiveType

  1. Object
  2. Enum<PrimitiveType>
  3. PrimitiveType

ImplementsComparable<PrimitiveType>

The geometric primitive a Mesh is assembled from. These map directly to the equivalent draw primitives on every backend (OpenGL ES, WebGL and Metal).

Enum constants

POINTSA list of unconnected points, one per vertex.
LINESA list of unconnected line segments, two vertices per line.
LINE_STRIPA connected polyline, one segment between each consecutive vertex.
TRIANGLESA list of independent triangles, three vertices per triangle.
TRIANGLE_STRIPA connected triangle strip sharing edges between consecutive triangles.

Methods

public static PrimitiveType[] values()
public static PrimitiveType valueOf(String name)

Inherited methods

Enum constant details

POINTS

POINTS
A list of unconnected points, one per vertex.

LINES

LINES
A list of unconnected line segments, two vertices per line.

LINE_STRIP

LINE_STRIP
A connected polyline, one segment between each consecutive vertex.

TRIANGLES

TRIANGLES
A list of independent triangles, three vertices per triangle.

TRIANGLE_STRIP

TRIANGLE_STRIP
A connected triangle strip sharing edges between consecutive triangles.

Method details

values

public static PrimitiveType[] values()

valueOf

public static PrimitiveType valueOf(String name)