Skip to content

clipToProjector

clipToProjector(triangles, minCosine?): ClipTriangle[]

Defined in: decal/clip.ts:120

The receiver triangles, cut to the box.

Returns triangles in the same projector space, fanned from each clipped polygon. A triangle wholly outside contributes nothing; one wholly inside comes back unchanged, which is the common case for small geometry.

readonly ClipTriangle[]

number = DEFAULT_FACING_COSINE

ClipTriangle[]