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

buildfunction

A rocket from a description. Throws FitError when it does not go together.

Import it

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

Definition

function build(description: Description, options?: { detail?: DetailLevel; beside?: boolean | readonly Description[]; named?: boolean; scale?: number; docked?: string; }): Built

Parameters

NameTypeDescription
descriptionDescription

The rocket, its variant and any other part in a slot.

options (optional){ detail?: DetailLevel; beside?: boolean | readonly Description[]; named?: boolean; scale?: number; docked?: string; }

detail: "coarse" leaves out the small 3D-only detail of a very detailed part, for a fast first view; left out, every piece is made. beside: the real Starship stack (Block 3) stands beside it at true scale, on the same ground, and boundsOf, placesOf, glb and svg take it in; Starship itself has nothing beside it. scale: the size, in per cent from 60 to 100, of a Kaminari concept hull (any other craft ignores it); every part, place and length is that share of the full size.

Returns

Built

The built rocket. It throws a FitError when the description does not go together.

Examples

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

const rocket = build({ rocket: "falcon-heavy" });
console.log(rocket.report.label, rocket.glb().bytes.length > 1000);
Falcon Heavy true

What it prints (run when this page was built)

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