Skip to main content
Use it for floor plates, terraces and landings.

Import

Example

Notes

  • Profile points are [x, z] in metres. elevation is the bottom of the slab. The slab extends upward.
  • For a hole that shows in the plan and in 3D, put it in profile.holes.
  • addOpening cuts a hole from an Opening. Call removeOpening before you dispose that opening.
  • The slabThickness setter keeps the thickness at 0.05 m or more.
  • setOPConfig needs the full options.
  • 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.
  • Set finish: true for a floor finish. The body is the same, but ogType is FLOOR and the plan uses the thinner floor pen. A saved slab with role floor builds this.
Inheritance: extends OPElement implements IShape, IPlaceable, PlanVectorExportable

Constructor

string
string
ElementType.SLAB
PolygonProfile
Polygon profile in the world XZ plane. outerRing is auto-closed and normalized to CW (the convention opengeometry.Polygon expects). Holes are auto-closed and normalized to CCW.
{ outerRing?: (BmWallArc | null)[]; holes?: (BmWallArc | null)[][]; }
{ outerRing?: (number | null)[]; holes?: (number | null)[][]; }
number
number
SlabMaterial
{ points: Point2[]; edges?: number[]; }
SlabMaterial
SlabMaterial
number
World Y of the bottom face of the slab. The profile is extruded upward by thickness.
string[]
ogids of openings whose opening3D Solids should be CSG-subtracted from the extruded slab at build time. Populated by addOpening / removeOpening.
boolean
When true, the plate is a floor finish: the same body, with ogType FLOOR and the thinner floor pen in a plan. A saved slab with role floor builds this.
PropertySets

Properties

ElementType
string
Map<string, OPGeometry>
Map<string, OPGeometry>
boolean
boolean
boolean
SlabOptions
string
PlateRole
Read-only. The role of the plate: floor for a floor finish, else slab. Set it with setOPConfig.
SlabProfile
number
number
Push/pull alias for the GUIEditor — the extrude dimension is the thickness.
number
SlabMaterial
number
boolean
boolean
boolean
WallBody[]
Read-only.

Methods

editableSchema

move

Translate this element by delta (world-space, meters).

rotate

Rotate this element by angleDeg around axis (default Y-up), pivoted at anchor (default the element’s own centroid).

addOpening

Attach an opening element whose opening3D Solid will be CSG-subtracted from the extruded slab.

removeOpening

getHostedOpenings

setOPGeometry

arcRegion

getExportRoots

Vector-export roots (RFC §7).

toDrawing

Produce the slab’s plan footprint as a standardized region primitive (outer ring + profile holes), from its authored 2D polygon.

setOPMaterial

getOPConfig

setOPConfig

Change some options and build the slab again.

dispose

Types

SlabOptions

PlateRole

The role of a saved plate. The package does not export this type by name.

SlabProfile

Polygon profile for a Slab — alias of PolygonProfile.

SlabMaterial

The enums of the solid elements’ saved options, kept apart from the elements so a building model can be read and checked without three.js or the geometry kernel.
Last modified on November 10, 2026