Geometry · interface
ShellStation
One station along the model, from one end to the other.
Explained in Hello world, Meshes and geometry.
interface ShellStationimport type { ShellStation } from '@driftengine/core';In depth
Every value is a fraction, so a profile is a shape rather than a size and the same one fits a
model of any dimensions. width and roofWidth are of the half width; waist and top are
of the height.
Properties
| Name | Type | Description |
|---|---|---|
atreadonly | number | Where along the long axis this station sits, 0 at one end and 1 at the other. |
widthreadonly | number | Half width of the lower mass here. |
waistreadonly | number | Where the lower mass stops and the upper one begins. Equal to top for a single mass. |
roofWidthreadonly | number | Half width of the upper mass. Zero where there is none. |
topreadonly | number | The top of the upper mass, or of the lower one where there is no upper. |