cutAway()
A copy of a dense model with everything on one side of an axis plane removed, to show its inside. Voxels exactly at at are kept. Sparse models (finer scales) are not supported: they have no dense data.
function cutAway(
model: EntityModel,
axis: "x" | "y" | "z",
at: number,
keep?: "below" | "above"
): EntityModel;Defined in: preview/cut.ts:16
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
model | EntityModel | undefined | - |
axis | "x" | "y" | "z" | undefined | The axis the cutting plane is perpendicular to. |
at | number | undefined | Plane position in model voxels. |
keep? | "below" | "above" | "below" | Which side stays: "below" keeps coordinates up to at. |
Returns
EntityModel