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.
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.
number
number
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.
PropertySets

Properties

ElementType
string
Map<string, OPGeometry>
Map<string, OPGeometry>
boolean
boolean
boolean
SlabOptions
string
SlabProfile
number
number
Push/pull alias for the GUIEditor — the extrude dimension is the thickness.
number
SlabMaterial
number
boolean
boolean
boolean

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

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

dispose

Types

SlabOptions

SlabProfile

Polygon profile for a Slab — alias of PolygonProfile.

SlabMaterial

Last modified on October 6, 2026