elementSet.vertices

The set naming vertices (corners of primitives) by index.

Value helperSince 0.3.0

Usage

TypeScript
ElementSet.vertices(indices: readonly number[], at?: Scope): ElementSet

Parameters

  • indicesreadonly number[]

    Vertex indices in the geometry the scope names; valid only in that revision.

    Required

  • atScope

    The 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

Example

TypeScript
ElementSet.vertices([0, 1, 2]).indices // → [0, 1, 2]