Import
Example
Notes
- Dimensions are in metres.
sillHeightis the bottom of the glass above the base of the host wall.- Size grips:
jamb-startandjamb-endchange the width,headchanges the height and keeps the sill, andsillchanges the sill and keeps the head. A grip stops at the last size that fits the wall; each drag is one undo step. windowTypesets the 3D and the elevation marks (see Window types).FIXED,GLASS,WOODandOTHERhave one fixed pane.CASEMENT(the default) has one sash hinged at the wall-start jamb,AWNINGone sash hinged at the head, andSLIDINGtwo 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.openingMarksasks: two lines meet at the hinge side, and a sliding one has an arrow.none(the default) draws no marks,dasheddraws every mark thin and dashed, andsoliddraws 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. 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
Window centre in the host wall’s local frame — horizontal only. The vertical is
sillHeight and
nothing else.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.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.Mullions, transoms and glazing bars, from the wall-start jamb and the bottom of the glass.
The place of the frame, sashes and glass across the wall. Absent: the frame fills the wall.
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.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
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.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.
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
anchorSpace
getEditAnchors
getEditFaces
applyEditAnchor
move
Opening.move (which walks points) does not apply.
getAnalyticCutBounds
getOPConfig
setOPConfig
getExportRoots
toDrawing
style.subId: frame, glass and sill, or for a bay bay-post, bay-glazing, sill and bay-mouth.
dispose
setOPGeometry
getWorldSillElevationRange
getOpeningMarks
setOPMaterial
Types
WindowOptions
WindowStationLocal
WindowPlanDrawingOptions
View-only options of a window’s plan symbol; they never change the saved window or its solids.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.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.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.