Import
Example
Notes
- Points are
[x, z]in metres.elevationis the world height of the ground. areais the net area in square metres, with holes subtracted.perimetermeasures the outer boundary.- The lot-line list must have one entry for each boundary edge. An edge without a class is a
sideline. trueNorthDegis the clockwise angle from project north (−Z) to true north.- A site in Floorkit is a design aid. It is not a legal survey.
- Start the geometry kernel before you create this object. See
Floorkit.
extends OPElement implements IPlaceable, PlanVectorExportable
Constructor
Properties
ElementType
string
Map<string, OPGeometry>
Map<string, OPGeometry>
Always empty — the parcel is a surface. Kept so
dispose() stays uniform.boolean
boolean
boolean
ISite
string
PolygonProfile
LotLineClass[]
Resolved lot-line classes, one per unique outer-ring edge (
side when unset).GeoAnchor | undefined
number
number
number
number
Read-only. Net parcel area in m² — outer ring minus holes. Computed, read-only.
number
Read-only. Outer-boundary length in m. Computed, read-only.
boolean
Methods
editableSchema
move
delta (world-space, meters).
rotate
getOPConfig
setOPConfig
beginEdit
beginEdit before endEdit keeps the first start.
endEdit
getEditAnchors
xz vertex anchor per outer-ring point (v:outer:<i>), and - one xz edge-mid anchor per edge midpoint (m:outer:<i>, edge i→i+1) — the insert-vertex affordance (Mapbox/nebula midpoint handles).
applyEditAnchor
v:outer:<i> moves outer-ring point i to the dropped (x, z), and - m:outer:<i> inserts a new point on edge i→i+1 at the dropped (x, z); the two edges it makes inherit edge i’s lot-line class.
setOPGeometry
getExportRoots
top exports.
toDrawing
setOPMaterial
dispose
classifyLotLines
Classify each parcel edge asfront / rear / side from the designated street-facing front edge.
Types
ISite
LotLineClass
Zoning class of one parcel edge.GeoAnchor
WGS84 fix of the local origin.number
required
number
required
number
Metres above sea level, if known. Carried through, never used by the projection.