Import
Example
Notes
- Profile points are
[x, z]in metres.elevationis 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. addOpeningcuts a hole from anOpening. CallremoveOpeningbefore you dispose that opening.- The
slabThicknesssetter keeps the thickness at 0.05 m or more. setOPConfigneeds 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.
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
delta (world-space, meters).
rotate
angleDeg around axis (default Y-up), pivoted at anchor (default the element’s own centroid).
addOpening
opening3D Solid will be CSG-subtracted from the extruded slab.