Skip to content

five-on-it / apps/tools/src/roof-spots / roofSpots

Function: roofSpots() ​

roofSpots(mesh): RoofInfo | undefined

Defined in: apps/tools/src/roof-spots.ts:53

The roof of a mesh (triangles in the game's frame, y up) and the free spots on it, or undefined for a mesh without a flat roof large enough (a pitched roof, a kiosk).

Parameters ​

mesh ​

indices ​

readonly number[]

vertices ​

readonly number[]

Returns ​

RoofInfo | undefined