computeNumberOfVertices
Computes the number of vertices in a geometry. The runtime is linear with respect to the number of attributes in a vertex, not the number of vertices.
const numVertices = Geometry.computeNumberOfVertices(geometry);
Content copied to clipboard
Return
The number of vertices in the geometry.
Parameters
geometry
The geometry.