Skip to main content
Attach it to a wall and the wall gets a real opening.

Import

Example

Notes

  • Dimensions are in metres.
  • sillHeight is the bottom of the glass above the base of the host wall.
  • Size grips: jamb-start and jamb-end change the width, head changes the height and keeps the sill, and sill changes the sill and keeps the head. A grip stops at the last size that fits the wall; each drag is one undo step.
  • windowType sets the 3D and the elevation marks (see Window types). FIXED, GLASS, WOOD and OTHER have one fixed pane. CASEMENT (the default) has one sash hinged at the wall-start jamb, AWNING one sash hinged at the head, and SLIDING two sashes. windowSashCount(windowType) gives the number of sashes. The plan symbol is the same for every type.
  • An elevation marks how a window or a door opens when its settings.openingMarks asks: two lines meet at the hinge side, and a sliding one has an arrow. none (the default) draws no marks, dashed draws every mark thin and dashed, and solid draws them in full and dashes a mark when the sash or the leaf opens away from you. Each mark is on the wall face toward you, and what stands in front of its opening hides it. A sash opens to the right face of its wall.
  • After you attach or change a window on a live wall, call wall.commitOpeningCuts(). This call cuts the wall.
  • setOPConfig needs the full options. Copy getOPConfig(), 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.
Inheritance: 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
How the window opens. FIXED, GLASS, WOOD and OTHER: one fixed pane in the frame. CASEMENT: one sash hinged at the wall-start jamb. AWNING: one sash hinged at the head. SLIDING: two sashes of half the width plus 0.05 m overlap, one behind the other. A window with no saved type is a CASEMENT. A sash opens to the right face of the wall (-acrossWall). The plan symbol is the same for every type; the 3D and the elevation marks differ.
number
Clear height of the glass opening.
number
Height of the sill — the bottom of the glass opening — above the host wall’s base. THE vertical authority for a window: the rough opening, the 3D frame and glass, the 2D plan symbol and the vector export all derive from it. See the baseHeight accessor for the rough-opening offset.
number
number
BmWindowDivisions
Mullions, transoms and glazing bars, from the wall-start jamb and the bottom of the glass.
BmWindowLight[]
How each light opens. A light that is not listed opens as windowType says.
number
Exterior overlap in metres of hinged sashes over the frame and dividing members.
BmOpeningFramePlace
The place of the frame, sashes and glass across the wall. Absent: the frame fills the wall.
BmWindowSill
An external sill under the frame that projects past the wall face it opens to.
BmWindowBay
A bay, bow or oriel that stands out of the host wall face: facets of glass between corner posts on a sill board, a base below it unless base is none, and its own roof. The hole in the host wall stays the window’s width; each facet is one light, numbered from the wall start.
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.
THREE.Vector3[]
Read-only. Plan-view hole loop (THREE.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.
(AnalyticOpeningCutBounds & { across: [ number, number ]; }) | undefined
Read-only. The part of the hole floor that the sill stands in, under a frame set back from its face: the cut bounds of it and its span across the wall, from the wall centre toward the left face.

Methods

editableSchema

getPhysicalParts

Borrow actual material parts; descriptors contain no seeds, cutters or symbols.

anchorSpace

A single draggable handle that slides the window along its host wall.

getEditAnchors

getEditFaces

Overall frame bounds on both physical faces; clear-size edit anchors remain unchanged.

applyEditAnchor

move

A window is positioned by its station and sill, not by a centreline, so the base Opening.move (which walks points) does not apply.

getAnalyticCutBounds

Exact station and elevation bounds used by analytic wall subtraction and fit.

getOPConfig

setOPConfig

getExportRoots

toDrawing

Produce the window’s plan symbol as standardized primitives, each with the part name of its style.subId: frame, glass and sill, or for a bay bay-post, bay-glazing, sill and bay-mouth.

dispose

setOPGeometry

getWorldSillElevationRange

World height range of the sill, or null for a window without one.

getOpeningMarks

The elevation marks of the closed window, one per light: two lines meeting at the hinged side of a side-hung, top-hung or bottom-hung light, an arrow for a sliding one, none for a fixed one.

setOPMaterial

Types

WindowOptions

WindowStationLocal

number
required
Distance along the wall from its start point.

WindowPlanDrawingOptions

View-only options of a window’s plan symbol; they never change the saved window or its solids.
'wall-depth' | 'reveal'
reveal draws the frame and the glass of a window without a bay in a band 0.08 m deep at the wall face of its sill (the right face when it has no sill), and leaves the rest of the reveal open. Absent means wall-depth.
'rectangle' | 'nosed' | 'none'
nosed draws the sill of a window without a bay with a curved front: half the sill projection at its ends and the whole projection at the middle. none draws no sill. Absent means rectangle.
'pane' | 'line' | 'none'
line draws the frame band of each bay light as one band with one glass line at its middle; none draws the band without glass. Absent means pane.
Last modified on December 1, 2026