Skip to content

Function: fillProjectionAxes() ​

ts
function fillProjectionAxes(xyz, count): [number, number];

Experimental

Choose the two axes to triangulate a (possibly 3D) planar polygon in: the axis most aligned with the Newell normal is dropped, so vertical fills in 3D (e.g. an area in the x–z plane) do not collapse. Returns [0, 1] (x, y) for 2D input or degenerate normals.

Parameters ​

ParameterType
xyzArrayLike<number>
countnumber

Returns ​

[number, number]

Released under the MIT License.