Skip to content

Geometries Object

The geometries object contains vertex data for the element's geometry.

KeyTypeDescription
vertexDataArray<Object>Array of vertex data objects defining the geometry mesh.

Vertex Data Object

Each object in the vertexData array contains the geometric data for a mesh.

KeyTypeDescription
idStringUnique identifier for this vertex data object.
indicesArray<Number>Array of indices defining the triangle faces (typically length is multiple of 3).
positionsArray<Number>Array of vertex positions as [x, y, z, x, y, z, ...] (length is multiple of 3).
normalsArray<Number>Array of vertex normals as [x, y, z, x, y, z, ...] (length is multiple of 3).
uvsArray<Number>Array of UV texture coordinates as [u, v, u, v, ...] (length is multiple of 2).