Skip to the content

Uchusen Rockets宇宙船

Rockets drawn from sourced sizes: line drawings and painted 3D views you drop into a page, take apart and turn round, and a typed model that checks whether a rocket really goes together.

Uchusen is the Japanese word 宇宙船 for spaceship. About the name

Contents

Reference · Build a mesh and a drawing

drawnPiecesfunction

What a drawing draws of a part: in a stack, what nests inside the part below is out of sight.

Import it

import { drawnPieces } from "@johnmorrisdotca/uchusen-rockets/build";

Definition

function drawnPieces(part: { record: PartRecord; pieces: readonly Piece[]; }, together: boolean): readonly Piece[]

Parameters

NameTypeDescription
part{ record: PartRecord; pieces: readonly Piece[]; }

A built part: its record and its pieces.

togetherboolean

True when the part stands in a stack, false when it is shown alone.

Returns

readonly Piece[]

The pieces to draw. In a stack, what nests inside the part below is left out.

Examples

import { build, drawnPieces } from "@johnmorrisdotca/uchusen-rockets/build";

const [first] = build({ rocket: "falcon-9", variant: "block-5" }).parts;
if (first) console.log(drawnPieces(first, true).length, drawnPieces(first, false).length);
131 131

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/uchusen-rockets 0.14.0.