addPath Method

Push edges along a path.

  • Typically used to add edges around a facet.

addPath(vertexIndices: number[], facetIndex: number, closeLoop: boolean): void

Parameter Type Description
vertexIndices number[] array of vertex indices along an open or closed path.
facetIndex number value to set on each edge pushed.
closeLoop boolean true to add an edge from last to first vertex.

Returns - void

Defined in

Last Updated: 07 June, 2025