Skip to content

Documentation / @sw-file-lib/geometry / cullSurfaces

Function: cullSurfaces() ​

ts
function cullSurfaces(surfaces: readonly FlattenedSurfaceData[]): Set<number>;

Defined in: surface/culling.ts:37

Detects hidden internal surfaces.

The returned set contains the indices of surfaces that can be omitted without changing the visible exterior geometry.

Parameters ​

ParameterTypeDescription
surfacesreadonly FlattenedSurfaceData[]Surfaces to analyze.

Returns ​

Set<number>

Indices of culled surfaces.