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
string
string
ElementType.FLOOR
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
FloorMaterial
number
Elevation from world center
PropertySets
Properties
ElementType
string
Map<string, OPGeometry>
Map<string, OPGeometry>
Always empty — a massing plate has no 3D geometry. Required by
IShape, and kept so dispose()
stays uniform with the other elements.boolean
boolean
boolean
FloorOptions
string
FloorProfile
number
FloorMaterial
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).