elementSet.vertices
The set naming vertices (corners of primitives) by index.
Usage
ElementSet.vertices(indices: readonly number[], at?: Scope): ElementSetParameters
indicesreadonly number[]Vertex indices in the geometry the scope names; valid only in that revision.
atScopeThe revision and graph node whose geometry the indices address; omit both for free-standing geometry. Default
{}.
Returns
{...at, kind: 'vertex', indices }, the array kept as given; an empty array names nothing.
Use instead
elementSet.points: you mean the shared position, not one primitive’s corner
Example
ElementSet.vertices([0, 1, 2]).indices // → [0, 1, 2]