ARGeometryElement
A container for index data, such as vertex indices of a face.
Declaration
class ARGeometryElementOverview
ARMeshGeometry uses geometry-elements to store face data (see faces). Each face is defined by the primitive type, for example, ARGeometryPrimitiveType.triangle.
To demonstrate, an ARMeshGeometry instance with two triangle-type faces results in the following configuration:
facescount= 2facesindexCountPerPrimitive= 3(because primitiveType is ARGeometryPrimitiveType.triangle)facesbytesPerIndex= 4(because vertex indices are the type UInt32)The buffer’s total size in bytes
=count*indexCountPerPrimitive*bytesPerIndex (which in this case, is2 * 3 * 4 = 24bytes)