Skip to content
ParaShape

Section

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

SectionRecord

Used by: CellType, PieceData, RenderCell.

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

export type SectionRecord = { 
/**
 * geometry — the cutting-plane entities.
 */
sections: Array<SectionEntity>, };
fieldtypeoptionalclassdoc
sectionsArray<SectionEntity>nogeometrygeometry — the cutting-plane entities.

SectionEntity

One cutting plane. A cut keeps the −normal half-space.

Used by: SectionRecord.

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

/**
 * One cutting plane. A cut keeps the −normal half-space.
 */
export type SectionEntity = { 
/**
 * geometry — a point on the cutting plane, mm.
 */
point: [number, number, number], 
/**
 * geometry — the cutting plane's unit normal.
 */
normal: [number, number, number], 
/**
 * intent — views the plane cuts in: `true` = every view including the
 * free camera, `false` = none, a list = exactly those view keys.
 */
active: PerViewFlag, 
/**
 * intent — free-form record data.
 */
attributes?: Record<string, unknown>, };
fieldtypeoptionalclassdoc
point[number, number, number]nogeometrygeometry — a point on the cutting plane, mm.
normal[number, number, number]nogeometrygeometry — the cutting plane's unit normal.
activePerViewFlagnointentintent — views the plane cuts in: true = every view including the free camera, false = none, a list = exactly those view keys.
attributesRecord<string, unknown>yesintentintent — free-form record data.

PerViewFlag

intent — properties.visible: absent/true = every view, false = none, a list = exactly those view keys. Empty list refused at evaluate. Render ships it as All(bool) against the session's active view (render::placement_shown); the free camera (no active view) is in no list.

Used by: Instance, ResolvedLayer, SectionEntity.

// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

/**
 * intent — `properties.visible`: absent/`true` = every view, `false` = none,
 * a list = exactly those view keys. Empty list refused at evaluate. Render
 * ships it as `All(bool)` against the session's active view
 * (`render::placement_shown`); the free camera (no active view) is in no list.
 */
export type PerViewFlag = boolean | Array<string>;

One of:

  • boolean
  • Array<string>
📖 1 min read