Import
Example
Notes
- Points are
[alongWall, acrossWall]in metres.baseHeightgives the vertical position. - An opening does not cut the objects near it. The host does the cut.
Wall.attachOpeningaccepts aDoor, aWindowor aWallOpening.- Start the geometry kernel before you create this object. See
Floorkit. - This object is live geometry. To save a building, write it in a building model.
extends OPElement implements IShape, IPlaceable
Constructor
THE vertical authority: the bottom of the rough opening, measured above the host wall’s base.
Never a world Y — the host frame’s origin supplies the storey elevation, so
world.y = frame.origin.y + baseHeight. Without a host or free placement, the identity frame makes
baseHeight world Y.Properties
Read-only. Where this opening currently sits along its host wall — the counterpart of
baseHeight
for the horizontal axis. Read by the walls so that attaching without an explicit offset
preserves an authored position instead of snapping the opening back to the wall’s start.Read-only. Plan-view hole loop (THREE.Vector3[] in the XZ plane at Y=0). The wall uses this as a
Polygon hole. The 1 µm across-wall inset keeps hole edges strictly inside the outer polygon so the
WASM triangulator does not produce degenerate output when edges coincide with the boundary.
Read-only. The rough hole shape the host cuts within the analytic station and elevation bounds.
Methods
bindHostEdit
beginEdit
endEdit
bindHostCurve
move
delta, hosted or not — the delta is projected onto the active frame’s axes (identity when no frame is bound), so there is one interpretation rather than one per hosting state.
rotate
angleDeg around axis (default Y-up), pivoted at anchor (default the element’s own centroid).
getCutterBody
setOPConfig
getOPConfig
anchorSpace
getEditAnchors
applyEditAnchor
bindHostFrame
bindFreePlacement
planHole
planRevealFaces
getPlacementFrame
toWorldPoints
baseHeight.
bindSizeFit
cutSpansAt
getAnalyticCutBounds
getWorldCutElevationRange
dispose
setOPGeometry
setOPMaterial
Types
OPGeometry
Visual primitive stored in an element’s subElements2D / subElements3D maps.OpeningHostCurve
OpeningOptions
OpeningCutter
An opening cutter: a kernel prism with the live id onogid and featureOutline, a line set of its edges that the host wall shows while an opening is dragged.
The package does not export this type by name.