Enumeration

MDLGeometryType

Types of geometric primitives for rendering a submesh, used by the geometryType property.

Declaration

enum MDLGeometryType : Int

Topics

Constants

case points

Each index in the submesh refers to a vertex to be rendered as a single point.

case lines

Each pair of consecutive indices in the submesh refers to two vertices to be rendered as a line segment.

case triangles

Each set of three consecutive indices in the submesh refers to three vertices to be rendered as a triangle.

case triangleStrips

The first three consecutive indices in the submesh refer to three vertices to be rendered as a triangle. Each subsequent index refers to another vertex that completes a triangle formed by connecting it to the previous two vertices.

case quads

Each set of four consecutive indices in the submesh refers to four vertices to be rendered as a quadrilateral.

case variableTopology

The submesh’s index buffer does not contain a uniform set of primitives.