sortVerticesCounterClockwise

sortVerticesCounterClockwise()
sortVerticesCounterClockwise(vertices: IPoint3[], base: IPoint3[]): IPoint3[]

Sorts an array of vertices in counter-clockwise order around their centroid.

Parameters

vertices: IPoint3[]

An array of vertices to be sorted.

base: IPoint3[]

A base array used to determine the sorting order.

Returns: IPoint3[]

A new array of vertices sorted in counter-clockwise order.