Import
Example
Notes
- Dimensions are in metres. Swing angles are in degrees.
-
doorQuadrantsets 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(startorendjamb of the wall) andswingSide(leftorrightface, facing along the wall from its first point) read and writedoorQuadrant. The inspector shows these two fields. In a managed editor, a change of a field is onereplace-hosted-openingstep. -
doorTypechooses the plan symbol and the 3D leaf (see Door types):WOODandOTHERswing one leaf,GLASSis a glass leaf in a thin frame,DOUBLEDOORhas two half leaves,SLIDINGshows a closed leaf with an arrow,FOLDINGshows two half panels in a zigzag, andDOUBLEACTIONshows an arc on each face. -
swingAngleDegreesis 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. -
baseHeightis the height above the base of the host wall. -
Size grips:
jamb-startandjamb-endchange the width and keep the other jamb, andheadchanges 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 amove-hosted-openingin onebatchwhen a jamb moves the centre), orreplace-free-openingfor a loose door. -
After you attach or change a door 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.DOOR> implements IShape, PlanVectorExportable
Constructor
thickness is the across-wall depth used only when the door is unhosted; when hosted, the lining
auto-matches the host wall’s thickness.The place of the frame and the leaf across the wall. Absent: the frame fills the wall.
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.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.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.The panels of a FOLDING door across the opening, 2 to 8, of equal width, each built with the leaf
style. Absent means 2.
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.
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.
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
The face the leaf opens to, from
doorQuadrant, facing along the wall from its first point.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.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
anchorSpace
getEditAnchors
getEditFaces
applyEditAnchor
move
Opening.move (which walks points) does not apply.
getAnalyticCutBounds
getOPConfig
setOPConfig
hingeSide and swingSide are written into doorQuadrant; they are not stored.
getOpeningMarks
dispose
setOPGeometry
getWorldSillElevationRange
getExportRoots
toDrawing
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.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.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
Related
OpeningAnalyticOpeningCutBoundsBmDoorCentreHandleBmDoorLeafLitesBmDoorLeverHandleBmDoorPullBarBmDoorSlidingPanelsBmOpeningFramePlaceBmWindowSillDrawingPrimitiveEditAnchorEditFaceElementTypeIShapeOPEditableSchemaOpeningOptionsPhysicalPartRolePlanExportViewPlanVectorExportablePoint3DVec3