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

Glbtype

A binary glTF file: its bytes and how many triangles it holds. Save the bytes as a .glb file or hand them to any glTF viewer.

Import it

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

Definition

interface Glb {
    bytes: Uint8Array;
    triangles: number;
}

Members

NameTypeDescription
bytesUint8Array<ArrayBufferLike>
trianglesnumber

Examples

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

const glb = build({ rocket: "starship", variant: "v3" }).glb();
console.log(glb.bytes.length > 1000, glb.triangles > 0);
true true

What it prints (run when this page was built)

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