Skip to main content
WallOpening is a plain hole in a wall: a passage, a serving hatch or a round window hole. It has no door or window in it. In a saved building it is a void on a wall. For a custom straight-wall hole, set profile to { outline: [[0, 0], [1, 0], [0.5, 1]] }. The first coordinate runs along the hole width and the second runs up from the sill. Use 3 to 64 points in a simple ring that touches all four sides of the normalized hole. The last point connects to the first automatically.

Import

Example

Notes

  • add-hosted-opening adds a void to a wall of an existing storey in one undo step. A void always has a host wall: add-free-opening refuses a void.
  • profile is rectangular, round or arched. A void with no profile is rectangular.
  • A round void needs equal width and height. An arched void needs height greater than width / 2: the head is a half circle on straight jambs. The model check refuses other sizes with bad-void-profile.
  • Round and arched holes are cut as planar facets: 64 for a full circle, 33 for an arch head. The facets are at most 0.6 mm inside the true circle for a 0.9 m hole. Plans, sections and elevations draw them.
  • A curved Wall (live geometry only; a saved wall is straight) keeps an exact round hole. It builds, but it does not draw in plan, section or elevation yet. A curved wall refuses an arched hole.
  • offset is the distance along the wall to the centre of the hole. sillHeight is the bottom of the hole above the wall base.
Inheritance: extends Opening<ElementType.OPENING> implements IShape, PlanVectorExportable

Constructor

StationLocal
Position along the host wall: alongWall is the opening’s centerline distance from the wall start. The sill is baseHeight.
number
Sill height above the host wall’s base. See OpeningOptions.baseHeight.
number
Clear opening width along the wall.
number
Clear opening height (sill to head).
BmOpeningProfile
Shape of the structural void. A round void uses equal width and height; an arched void has a half circle head, so its height is more than width / 2. Round and arched holes are cut as planar facets.
string
string
ElementType.OPENING
string
number
number
[number, number][]
PropertySets

Properties

WallOpeningOptions
string
string | undefined
StationLocal
number
Read-only. Station-based: the authored position along the host wall.
number
number
BmOpeningProfile
BmOpeningProfile
Read-only. The built-in shape or normalized outline of this unfilled hole.
boolean
boolean
THREE.Vector3[]
Read-only. Plan-view hole loop (THREE.Vector3[] at Y=0).

Methods

editableSchema

Self-describing editable surface; a host inspector renders this generically.

anchorSpace

A single station handle sliding the opening along its host wall (world space, alongAxis along the wall).

getEditAnchors

getEditFaces

Physical opening extents for read-only measurements; station editing is unchanged.

applyEditAnchor

move

Station-based, so the base Opening.move (which walks points) does not apply.

cutSpansAt

outlineSpansAt

A custom outline can leave more than one opening at one horizontal cut.

getAnalyticCutBounds

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

getOPConfig

setOPConfig

dispose

setOPGeometry

getExportRoots

Vector-export roots (RFC §7).

toDrawing

Plan symbol as standardized primitives: the two jambs as solid lines and the head as a hidden-class line (renderers dash hidden edges).

setOPMaterial

Types

WallOpeningOptions

Last modified on December 4, 2026