Enumeration

SCNGeometryPrimitiveType

The drawing primitive that connects vertices when rendering a geometry element, used by the primitiveType property to specify how SceneKit interprets the geometry element’s data.

Declaration

typedef enum SCNGeometryPrimitiveType : NSInteger {
    ...
} SCNGeometryPrimitiveType;

Topics

Constants

SCNGeometryPrimitiveTypeTriangles

The geometry element’s data is a sequence of triangles, with each triangle described by three new vertices.

SCNGeometryPrimitiveTypeTriangleStrip

The geometry element’s data is a sequence of triangles, with each triangle described by one new vertex and two vertices from the previous triangle.

SCNGeometryPrimitiveTypeLine

The geometry element’s data is a sequence of line segments, with each line segment described by two new vertices.

SCNGeometryPrimitiveTypePoint

The geometry element’s data is a sequence of unconnected points.

SCNGeometryPrimitiveTypePolygon

The geometry element’s data is a sequence of arbitrary polygons.

See Also

Working with Indexes

data

The data describing the geometry element.

bytesPerIndex

The number of bytes that represent each index value in the element’s data.

primitiveType

The drawing primitive that connects vertices when rendering the geometry element.

primitiveCount

The number of primitives in the element.

primitiveRange

The range of primitives from the geometry element to render.