Reference · Rockets, variants, parts and the fit check
isCoarsefunction
Whether a piece belongs to the coarse level: a body of revolution that is part of the main body or has an outline (a hull, a bell, a collar's flange), or a solid that is at least a metre and a half every way (a container's box). Everything else is detail and is added in the fine pass.
Import it
import { isCoarse } from "@johnmorrisdotca/uchusen-rockets";
Definition
function isCoarse(piece: Piece): boolean
Parameters
| Name | Type | Description |
|---|---|---|
piece | Piece | A piece of a module. |
Returns
boolean
True for the coarse level.
Examples
import { isCoarse, KIT } from "@johnmorrisdotca/uchusen-rockets";
const pieces = KIT["tank-cryo-12"].pieces();
console.log(pieces.filter(isCoarse).length, "of", pieces.length);3 of 869What it prints (run when this page was built)