elementSet.cvs

The set naming NURBS control points by grid position: i along u, j along v.

Value helperSince 0.3.0

Usage

TypeScript
ElementSet.cvs(cells: readonly (readonly [number, number])[], at?: Scope): ElementSet

Parameters

  • cellsreadonly (readonly [number, number])[]

    Control points as [i, j]: i along u, j along v; j = 0 for a curve.

    Required

  • atScope

    The revision and graph node whose geometry the indices address; omit both for free-standing geometry. Default {}.

Returns

{...at, kind: 'cv', cvs: cells }, the array kept as given; an empty list names nothing.

Example

TypeScript
ElementSet.cvs([[2, 0]]).cvs // → [[2, 0]]

See also