Skip to content
ParaShape

Block

A SceneObject whose data is { "type": "block", …Block } — the tag plus every field of Block.

Also uses: SceneObject, Mesh.

Block

Used by: PieceData.

// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Behavior } from "./Behavior.js";
import type { SceneObject } from "./SceneObject.js";

export type Block = { 
/**
 * geometry — the evaluated objects.
 */
objects: Array<SceneObject>, 
/**
 * geometry — the behaviors of the block as a whole, block-local: a
 * placed document's root `behaviors[]`, or a clone's source object's
 * own; empty for a nest (whose own ride on its `SceneObject`).
 */
behaviors: Array<Behavior>, };
fieldtypeoptionalclassdoc
objectsArray<SceneObject>nogeometrygeometry — the evaluated objects.
behaviorsArray<Behavior>nogeometrygeometry — the behaviors of the block as a whole, block-local: a placed document's root behaviors[], or a clone's source object's own; empty for a nest (whose own ride on its SceneObject).

Behavior

Used by: Block, SceneObject.

// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Mesh } from "./Mesh.js";

export type Behavior = { "method": "opening", 
/**
 * geometry — the void, in the carrying object's own local space.
 */
volume: Mesh, } | { "method": "faceCamera", 
/**
 * geometry — the turning point, in the carrying object's own local
 * space: the object's own resolved pivot (`graph::property::
 * placements`), stamped on at assembly — never an
 * authored value.
 */
pivot: [number, number, number], 
/**
 * geometry — the unit normal that faces the viewer, in the
 * carrying object's own local space.
 */
normal: [number, number, number], };

Behavior — opening

fieldtypeoptionalclassdoc
method"opening"notag—
volumeMeshnogeometrygeometry — the void, in the carrying object's own local space.

Behavior — faceCamera

fieldtypeoptionalclassdoc
method"faceCamera"notag—
pivot[number, number, number]nogeometrygeometry — the turning point, in the carrying object's own local space: the object's own resolved pivot (graph::property:: placements), stamped on at assembly — never an authored value.
normal[number, number, number]nogeometrygeometry — the unit normal that faces the viewer, in the carrying object's own local space.
📖 1 min read