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

Import

Example

Notes

  • Dimensions are in metres. Swing angles are in degrees.
  • doorQuadrant sets the hinge jamb and the face the leaf opens to, relative to the direction of the wall. Stand at the first point of the wall and look along it:
  • hingeSide (start or end jamb of the wall) and swingSide (left or right face, facing along the wall from its first point) read and write doorQuadrant. The inspector shows these two fields. In a managed editor, a change of a field is one replace-hosted-opening step.
  • doorType chooses the plan symbol and the 3D leaf (see Door types): WOOD and OTHER swing one leaf, GLASS is a glass leaf in a thin frame, DOUBLEDOOR has two half leaves, SLIDING shows a closed leaf with an arrow, FOLDING shows two half panels in a zigzag, and DOUBLEACTION shows an arc on each face.
  • swingAngleDegrees is 0 to 180: 0 closed, 90 square to the wall, 180 flat against it; the arc ends at the leaf. At 0 there is no arc.
  • baseHeight is the height above the base of the host wall.
  • Size grips: jamb-start and jamb-end change the width and keep the other jamb, and head changes the height and keeps the threshold. A grip stops at the last size that fits the wall. In a managed editor each drag is one undo step: replace-hosted-opening (with a move-hosted-opening in one batch when a jamb moves the centre), or replace-free-opening for a loose door.
  • After you attach or change a door 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.DOOR> implements IShape, PlanVectorExportable

Constructor

StationLocal
{ width: number; thickness: number; }
{ width: number; thickness: number; }
thickness is the across-wall depth used only when the door is unhosted; when hosted, the lining auto-matches the host wall’s thickness.
BmOpeningFramePlace
The place of the frame and the leaf across the wall. Absent: the frame fills the wall.
DoorType
How the door draws and builds. WOOD and OTHER: one swinging leaf. GLASS: one swinging leaf of glass in a 0.06 m leaf frame (a glazing part). DOUBLEDOOR: two half leaves hinged at the two jambs. SLIDING: a closed leaf on the face of doorQuadrant, an arrow toward the hinge-side jamb, no arc. FOLDING: foldingPanels panels of equal width in a zigzag, folded by half the swing angle, no arc. DOUBLEACTION: one leaf and one arc on each face. OVERHEAD (up-and-over): one closed leaf in the wall and, on the face of doorQuadrant, a dashed area as deep as the door is high, the floor it travels over, no arc. SECTIONAL: as OVERHEAD, its leaf made of horizontal sections about 0.5 m high. Each swing arc runs from the closed leaf to the leaf tip over swingAngleDegrees; 0 draws no arc.
DoorLeafStyle
The leaf of a WOOD, OTHER, DOUBLEDOOR, DOUBLEACTION, FOLDING or SLIDING door: flush one slab; panelled stiles and rails around leafPanels recessed panels; half-glazed glass above a recessed panel; glazed glass between the stiles and rails. Absent means flush.
number
The recessed panels of a panelled leaf, 1 to 8: an even count of 4 or more stands in two columns, any other count in one. Absent means 4.
BmDoorLeafLites
A stack of framed glass lites in a flush leaf.
number
A planked leaf: width of a board, rounded to whole boards. Default 0.1.
number
A planked leaf: width of the frame around the boards. Default 0, no frame.
number
A planked leaf with a board frame: height of the bottom rail. Default boardFrame.
number
Height of a threshold board between the jambs; the leaf stands on it. Default none.
BmWindowSill
A bar projecting from the wall face below the door.
number
Height of the frame head. Default frameDimensions.width.
number
A ribbed OVERHEAD or SECTIONAL door: height of a rib, rounded to whole ribs. Default 0.1.
BmDoorLeverHandle
A lever handle on both faces of each hinged leaf.
BmDoorCentreHandle
A handle in the middle of an OVERHEAD or SECTIONAL door.
BmDoorPullBar
A pull bar on both faces of each leaf; not on a FOLDING, OVERHEAD or SECTIONAL door.
number
The panels of a FOLDING door across the opening, 2 to 8, of equal width, each built with the leaf style. Absent means 2.
BmDoorSlidingPanels
A SLIDING door: panels in tracks. Absent means one leaf.
number
number
DoorMaterialType
number
number
number
Which way the door swings, facing along the wall from its first point: 1 hinges at the wall-start jamb and opens to the left face, 2 at the wall-end jamb to the left face, 3 at the wall-start jamb to the right face, 4 at the wall-end jamb to the right face.
number
How far the leaf is open, 0 to 180 degrees: 0 closed, 90 square to the wall, 180 flat against it; the arc ends at the leaf. The plan follows it; the 3D leaf is closed.
string
string
ElementType.DOOR
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

DoorOptions
boolean
string | null
StationLocal
number
Read-only. Station-based: the authored position along the host wall.
string
string | undefined
number
number
DoorHingeSide
The jamb of the hinge, from doorQuadrant: start is the lower station of the wall.
DoorSwingSide
The face the leaf opens to, from doorQuadrant, facing along the wall from its first point.
number
number
number
number
number
number
number
number
boolean
boolean
Opening
Read-only. At runtime Door IS an Opening; this getter is kept for wall attachers that expect an Opening handle. After making Opening generic over its discriminator, the cast is structural and clean.
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.

Methods

editableSchema

getPhysicalParts

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

anchorSpace

A world-space station handle.

getEditAnchors

getEditFaces

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

applyEditAnchor

move

A door is positioned by its station, 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

hingeSide and swingSide are written into doorQuadrant; they are not stored.

getOpeningMarks

The elevation marks of the closed door: two lines meeting at the hinge side of each swinging leaf (each panel of a FOLDING leaf), an arrow toward the hinge-side jamb for SLIDING, an arrow up for OVERHEAD and SECTIONAL.

dispose

setOPGeometry

getWorldSillElevationRange

World height range of the physical sill, or null when the door has no sill.

getExportRoots

Vector-export roots (RFC §7).

toDrawing

Produce the door’s plan symbol as standardized primitives, each with the part name of its style.subId: frame (the jamb posts), leaf, swing (a true DrawingArc ), slide-arrow (the arrow of a sliding leaf), travel (the overhead travel of a garage door) and fold (the panels of a folding door).

setOPMaterial

Types

DoorOptions

PhysicalElementPart

Borrowed material body.

StationLocal

Horizontal position of an opening on its host wall.

DoorHingeSide

The jamb of the hinge: at the lower station (start) or the upper station (end) of the wall. The package does not export this type by name.

DoorSwingSide

The face the leaf opens to, facing along the wall from its first point. The package does not export this type by name.

DoorSides

The package does not export this type by name.

OpeningMarks

The marks of one door or window, in world metres. The package does not export this type by name.
ReadonlyArray<readonly [ Point3D, Point3D ]>
required
Line segments on the wall centre plane.
Point3D
required
The horizontal unit normal of the wall (+acrossWall).
number
required
Half the wall thickness: a drawer shows the marks on the face toward the viewer.
1 | -1 | 0
required
The face that the leaf or sash opens to: 1 for +acrossWall, -1 for -acrossWall, and 0 when it opens to no face (sliding, double action). A drawer dashes the marks seen from the other face.

DoorPlanDrawingOptions

View-only options of a door’s plan symbol; they never change the saved door or its solids.
'open' | 'closed'
closed draws the panels of a FOLDING door in line across the opening. Absent means open.

DoorType

DoorLeafStyle

The package does not export this type by name.

DoorMaterialType

Last modified on December 1, 2026