Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

extent function

Bounds of the parts of the model with each piece moved by its own `moves` entry (file units) and by those of the pieces it sits inside: what `contain` fits into the box.

View as Markdown
import { extent } from '@dioramajs/model/explode'

.

function extent(
  pieces: readonly Piece[],
  still: readonly Box3[],
  moves: readonly Vector3[],
): Box3[]

Parameters

NameTypeDescription
piecesreadonly Piece[]
stillreadonly Box3[]
movesreadonly Vector3[]

Defined in packages/model/src/explode.ts.