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.
- Set
finish: truefor a floor finish. The body is the same, butogTypeisFLOORand the plan uses the thinner floor pen. A saved slab with rolefloorbuilds this.
extends OPElement implements IShape, IPlaceable, PlanVectorExportable
Constructor
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.ogids of openings whose
opening3D Solids should be CSG-subtracted from the extruded slab at
build time. Populated by addOpening / removeOpening.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.Properties
Read-only. The role of the plate:
floor for a floor finish, else slab. Set it with
setOPConfig.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.