The .drft container · interface
DrftSdfvEntry
Explained in The .drft container.
interface DrftSdfvEntryimport type { DrftSdfvEntry } from '@driftengine/drft';Properties
| Name | Type | Description |
|---|---|---|
meshreadonly | number | The mesh ordinal this field belongs to, as MESH numbers them. |
dimsreadonly | readonly [number, number, number] | Samples on each axis. The spacing is the same on all three; see bakeObjectSdf. |
boundsreadonly | Float32Array | The field's own extent, [minX, minY, minZ, maxX, maxY, maxZ]. Six floats. |
fieldreadonly | Float32Array | Distance in metres, negative inside. x fastest, then y, then z. |