Import
extends OPElement implements IShape, IPlaceable, PlanVectorExportable
Constructor
The stack, bottom-up. Each segment extrudes from the top of the one below and carries its storeys,
which tile its height.
Properties
The saved id of the active segment: the part that the editor grips, a move, a turn and Delete act
on. Setting the id of a segment of this mass makes it active; any other id changes nothing. An
editor reads it when it builds its grips and sets it again when one of its gestures begins, so two
editors on one mass each edit the part whose grips they drag.
Read-only. Local Y of the bottom of the active segment: the plane of its footprint and the base of
the push/pull grip, which for an upper segment is the top of the segments below it.
Methods
editableSchema
setSegment
selectPart
object the active segment, so that the editor grips, a move and a turn, and Delete act on that part.
storeyElevations
quantities
options.grade is the world Y of the site grade (default 0).
move
delta (world-space, meters).
rotate
angleDeg around axis (default Y-up), pivoted at anchor (default the element’s own centroid).
setOPGeometry
getExportRoots
toDrawing
"{n}F · {use}" label at the top segment’s centroid.