DriftCapture · interface

Region

What a region is, once something has decided where it is.

Explained in DriftCapture.

interface Region
import type { Region } from '@driftengine/capture';

Properties

NameTypeDescription
trianglesreadonlyreadonly number[]Triangles belonging to it.
boundsreadonlyFloat64ArrayminX, minY, minZ, maxX, maxY, maxZ, in the capture's world.
normalreadonlyFloat64ArrayIts area-weighted mean normal, which is what makes a floor a floor.
areareadonlynumber
labelreadonlystring | nullA label somebody attached, or null — which is the ordinary case.