Skip to content
Shapemetry

@huukhanhnguyen/model / schema/renderViews

schema/renderViews

Basis

Basis = { label: string; right: Vector; up: Vector; }

label

label: string

right: Vector

up

up: Vector


GroupMesh

GroupMesh = { colors: Float64Array; key: string; triangles: Float64Array; }

colors

colors: Float64Array

key

key: string

triangles

triangles: Float64Array


LinearRgb

LinearRgb = [number, number, number]

Linear RGB 0..1 for this rasterizer — not scene Color (0..255) and not Point.


RenderedViews

RenderedViews = { height: number; pixels: Uint8ClampedArray; tiles: { height: number; label: string; width: number; x: number; y: number; }[]; width: number; }

height

height: number

pixels

pixels: Uint8ClampedArray

RGBA, row-major, top-left origin.

tiles

tiles: { height: number; label: string; width: number; x: number; y: number; }[]

Tile rectangles in the montage, for tests and tooling.

height

height: number

label

label: string

width

width: number

x

x: number

y

y: number

width

width: number


Tile

Tile = { pixels: Float64Array; size: number; }

pixels

pixels: Float64Array

size

size: number

Last updated: 📖 1 min readEdit on GitHub