Geometry · interface

ShellFillOptions

Explained in Hello world, Meshes and geometry.

interface ShellFillOptions
import type { ShellFillOptions } from '@driftengine/core';

Properties

NameTypeDescription
colorreadonlyoptionalVec3Near black by default, because a fill is read as the absence of a hole rather than as a thing.
insetreadonlyoptionalnumberHow far inside the model's own width and height the solid sits, 0 to 1.
More

Well inside, and the default says so. A stack of boxes is a bounding volume and most models are curved, so a solid sized to touch the surface stands through it somewhere. It does not need to reach: the copy of the model backs the surface, and this only has to sit behind the openings.

lengthInsetreadonlyoptionalnumberThe same, along the long axis, where a shape usually tapers hardest.
slicesreadonlyoptionalnumberHow many boxes the solid is built from. More follows a profile more closely.
profilereadonlyoptionalreadonly ShellStation[]What the subject looks like from the side. See ShellStation.
floorreadonlyoptionalnumberLifts the solid off the model's floor, as a fraction of height.