The .drft container · interface

DrftSdfvEntry

Explained in The .drft container.

interface DrftSdfvEntry
import type { DrftSdfvEntry } from '@driftengine/drft';

Properties

NameTypeDescription
meshreadonlynumberThe mesh ordinal this field belongs to, as MESH numbers them.
dimsreadonlyreadonly [number, number, number]Samples on each axis. The spacing is the same on all three; see bakeObjectSdf.
boundsreadonlyFloat32ArrayThe field's own extent, [minX, minY, minZ, maxX, maxY, maxZ]. Six floats.
fieldreadonlyFloat32ArrayDistance in metres, negative inside. x fastest, then y, then z.