Slab.
Import
Example
Notes
- Profile points are
[x, z]in metres.elevationis the world height. - The profile can have holes. A profile that is not valid throws an error.
- A floor shows in the plan only. It has no solid.
- 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
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.Properties
Always empty — a massing plate has no 3D geometry. Required by
IShape, and kept so dispose()
stays uniform with the other elements.Methods
editableSchema
move
delta (world-space, meters).
rotate
angleDeg around axis (default Y-up), pivoted at anchor (default the element’s own centroid).