Import
Example
Notes
- Dimensions are in metres.
sillHeightis the bottom of the glass above the base of the host wall.- After you attach or change a window on a live wall, call
wall.commitOpeningCuts(). This call cuts the wall. setOPConfigneeds the full options. CopygetOPConfig(), change one field and pass the copy.- 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 Opening<ElementType.WINDOW> implements IShape, PlanVectorExportable
Constructor
WindowStationLocal
Window centre in the host wall’s local frame — horizontal only. The vertical is
sillHeight and
nothing else.{ width: number; thickness: number; }
{ width: number; thickness: number; }
WindowType
number
Clear height of the glass opening.
number
Height of the sill — the bottom of the glass opening — above the host wall’s base.
number
number
string
string
ElementType.WINDOW
string
number
number
number
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.number
[number, number][]
PropertySets
Properties
WindowOptions
boolean
string | null
WindowStationLocal
number
Bottom of the ROUGH OPENING above the wall base — the unified vertical every opening exposes. A
window is authored by its sill, and the opening it needs starts one frame-width lower to seat the
lining, so the two differ by exactly
frameDimensions.width. That relationship is stated here and
nowhere else.number
Read-only. Station-based: the authored position along the host wall.
string
string | undefined
number
number
number
number
number
number
number
number
boolean
boolean
Opening
Read-only. Window IS the opening — return self. Kept for compatibility with wall attachers.
Vector3[]
Read-only. Plan-view hole loop (Vector3[] at Y=0). The 1 µm across-wall inset (HOLE_2D_TOLERANCE)
keeps hole edges strictly inside the outer polygon so the WASM triangulator handles them
correctly.
Methods
editableSchema
getPhysicalParts
anchorSpace
getEditAnchors
applyEditAnchor
move
Opening.move (which walks points) does not apply.
getAnalyticCutBounds
getOPConfig
setOPConfig
getExportRoots
toDrawing
dispose
setOPGeometry
setOPMaterial
Types
WindowOptions
WindowStationLocal
number
required
Distance along the wall from its start point.