Skip to main content
Use it for furniture, equipment and other objects that are not walls, slabs or roofs. One definition gives a 2D plan symbol and a 3D model.

Import

Example

Notes

  • The definition uses metres.
  • The input can be text, a definition object, or options with a source.
  • Use updateNodeProperty or setOPConfig to change the element. An unknown node id throws an error.
  • getOPBuffer returns the definition as text.
  • ifcClass is the IFC class the .op file names in metadata['ifc:class'] (or metadata.ifcClass), such as IfcSanitaryTerminal. It is undefined when the file names none.
  • A placed block has one scale size on all three axes. A negative X or Z scale mirrors it, for example [-1, 1, 1]. Y stays positive. Any other scale is refused as bad-scale with its path.
  • An embedded definition that is no block is refused as bad-asset-definition. An external asset with no source gives asset-source-missing with its uri.
  • OpenElement.editableSchema() lists labelName, placement.position, placement.rotation, placement.scale and propertySets.
  • A block of a building model saves all of them. The saved position y is storey-relative. The saved rotation is the Y turn only: the managed editors refuse an X or Z turn.
  • Start the geometry kernel before you create this object. See Floorkit.

Model node kinds

A modelView element, or a definition it refers to, is one of these kinds. Plan points are [x, z], model points are [x, y, z], in metres. An angle is in radians and turns from +X towards -Z, counter-clockwise seen from above. Any other kind is refused as unsupported kind.
  • cuboid: center, width, height, depth.
  • cylinder: center, radius, height. With angle below a full turn it is a sector of that sweep from startAngle (0 by default), for example a half-round bowl. A mirrored sector reflects its arc.
  • sweep: path and profile, or pathRef and profileRef, with capStart and capEnd. profile is a list of model points, or an outline: { start, segments, closed: true } in plan points, where a segment is { to } for a line or { to, arc: { center, counterClockwise } } for an arc. counterClockwise reads seen from above. The outline closes with a line when its last segment does not end at start. Its [0, 0] is the lower end of the path. An outline, with arcs or with lines only, is extruded: its path is one vertical segment and capStart and capEnd are true, else it is refused as bad-sweep. An outline sweeps along a straight path only. An outline sweep has no path grips.
  • sphere: center, radius.
  • cone: center, radiusBottom, radiusTop, height, upright. One radius may be 0 for a pointed cone; with both above 0 it is a frustum. When both radii are below 0.01 it is refused as bad-cone.
  • torus: center, majorRadius, minorRadius, a ring lying flat with its axis upright. minorRadius must be below majorRadius - 0.001, else it is refused as bad-torus.
  • revolve: profile, an outline as for a sweep, turned a full turn, and an optional axis: { point, direction }. The outline is upright: a point [x, y] is the model point (x, y, 0), an arc’s counterClockwise reads seen from the front (+Z), and the default axis is the model Y axis, so the solid stands upright. Move it with its placement. An outline that crosses the axis or touches it at one point is refused by the kernel; a bowl keeps its waste hole as the gap at the axis. A partial turn is not built. A revolve has no grips.
  • For cuboid, cylinder, sphere, cone and torus, center is the middle of the body’s box: a cylinder or a cone stands half its height below it, and a torus lies one minorRadius below it.
  • An uneven block scale stretches a cuboid, and a cylinder or a cone when the X and Z scales are equal. It refuses a sphere, a torus, a revolve, a shell and a sweep as bad-scale with the node.
  • boolean3d: operation (subtract, union or intersect), baseRef and operandRefs.
  • shell, in definitions only, as boolean3d: sourceRef and thickness. It hollows the solid it refers to, leaving one closed void thickness inside every face. Measured on OpenGeometry 3.0.0, it builds for a cuboid, a full cylinder, a sphere, a pointed cone, a frustum, a torus, an outline sweep (with arcs or with lines only), a sweep of a list of points with both ends capped, and a boolean3d of a cuboid minus a cylinder. The kernel refuses the shell of a cylinder sector and of a revolve with CoverageGap. A source that is not a solid (a sweep with open ends) is refused as bad-shell.
  • The sizes and points of sphere, cone, torus, revolve, shell and of an outline are strict: each is given, finite, and a size is above 4e-8 (four times the kernel tolerance; a cone radius may also be 0). Else the node is refused as bad-sphere, bad-cone, bad-torus, bad-revolve, bad-shell, bad-profile or bad-sweep (an outline sweep’s path). An outline arc whose center is not as far from the segment’s start as from its end is refused as bad-profile. cuboid and cylinder keep their older rule: a missing or bad size takes a default.

For the catalog format v2

The catalog format v2 may use every kind above with these fields and these strict values. Limits of OpenGeometry 3.0.0: an outline sweeps along one vertical segment with both ends capped; a revolve is a full turn; a cylinder sector and a revolve cannot be shelled; a cone needs a radius of 0.01 or more; a torus needs minorRadius < majorRadius - 0.001; an uneven block scale stretches only cuboids, and cylinders and cones with equal X and Z scales. A plan view draws the block’s profileView, so each block still needs its plan symbol. Inheritance: extends THREE.Group implements IShape, PlanVectorExportable, PortOwner

Constructor

Properties

string
string
Map<string, THREE.Object3D>
Map<string, THREE.Object3D>
boolean
boolean
boolean
OpenElementConfig
string
Read-only.
boolean
string
boolean
boolean

Methods

editableSchema

Self-describing editable surface of a placed block; a host inspector renders it generically.

parseBuffer

Read a block to build it: a size rule that does not hold is left off, not refused.

normalizeDefinition

Read a block to build it: a size rule that does not hold is left off, not refused.

getOPBuffer

getAnchorDefinition

An anchor as built: reflected with the block when its placement scale mirrors it.

getAnchorMatrix

getExportRoots

getPhysicalParts

The 3D bodies of the block (its cuboids, cylinders, sweeps and their booleans), as built and placed in the world through this element: what a section or an elevation draws.

getModelFrame

The insertion frame used by the kernel to place the evaluated bodies.

getModelParts

Borrow the evaluated bodies with their definition part keys and authored finish roles.

toDrawing

Standardized plan primitives from the asset’s authored 2D profile view.

setOPConfig

beginEdit

Start one live edit; a second beginEdit before endEdit keeps the first start.

endEdit

End the live edit; its exact undo and redo, or undefined when no option changed.

getOPConfig

getControlSchema

updateNodeProperty

getEditAnchors

applyEditAnchor

Apply a previewed handle drag.

dispose

Dispose the block’s bodies and 2D lines.

setOPGeometry

setOPMaterial

Types

PortOwner

OpenElementConfig

OpenElementInput

OpenElementDefinition

1
required
string
required
string
required
ElementType
required
OpenElementDimensions
required
OpenElementStretchZones
OpenElementSizing
Per axis with a stretch zone, the sizes offered; none is any size the zone can take.
Placement
Record<string, string>
OpenElementAnchors
PortDefinition[]
OpenElementDefinitions
OpenElementProfileView
OpenElementModelView

AnchorDefinition

ControlSchema

DistributionPort

string
required
PortDomain
required
string
required
Free-form but conventional: “supplyAir”, “chilledWaterSupply”, “power”.
PortFlowDirection
required
Placement
required
Local placement on the owning element.
PortProfile
required
Cross-section the connecting run must match.
boolean
Chain-internal port of a generated run piece. Regenerated wholesale on every path edit, so external connections must never target it — the graph rejects such connects with INTERNAL_PORT.
Record<string, string>

OpenElementOptions

1
Partial<OpenElementDimensions>
string | OpenElementDefinition
BlockPrototypes
Share this block’s evaluated bodies with every other block of the same content.

OpenElementDimensions

OpenElementStretchZones

The parts of a block that stretch when an instance takes a size: along each axis, the part between from and to (local metres) stretches and the parts outside move.

OpenElementSizing

The sizes a block offers, per axis with a stretch zone.

OpenElementAnchors

PortDefinition

A distribution port authored on a .op asset.

OpenElementDefinitions

OpenElementProfileView

OpenElementModelView

NodeControlDescriptor

PortDomain

PortFlowDirection

PortProfile

Cross-section a connecting run must match (or bridge with a transition).

AxisSizing

DefinitionNode

ProfileViewElement

ModelViewElement

PropertyDescriptor

AxisSizeList

The only sizes of an axis, in metres: 2 to 24 rising numbers, the block’s own among them.

ProfileNode

Curve3DNode

ModelNode

OperationNode

RefNode

ControlPropertyType

ProfilePolygonNode

ProfilePolylineNode

ProfileArcNode

Curve3DPolylineNode

ModelCuboidNode

ModelCylinderNode

'cylinder'
required
Point3
required
number
required
number
required
number
Sweep of a partial cylinder in radians, from startAngle towards -Z seen from above; a full turn by default.
number
Start of a partial cylinder in radians from +X, turning towards -Z; 0 by default.

ModelSweepNode

ModelSphereNode

A solid sphere about center.

ModelConeNode

An upright cone, or a frustum when both radii are above 0.

ModelTorusNode

A ring torus lying flat, its axis upright, center the middle of the ring.

ModelRevolveNode

A closed outline turned a full turn into a solid.

Offset2DOpNode

Boolean3DOpNode

Shell3DOpNode

A solid hollowed in place: one closed void thickness inside every face.

BaseElementNode

The package does not export this type by name.

Point2

The package does not export this type by name.

Point3

The package does not export this type by name.

ModelSweepDirectNode

ModelSweepRefNode

ModelArcProfile

A closed line-and-arc outline in the kernel’s Profile shape.

ColorValue

The package does not export this type by name.

ModelProfileSegment

One edge of a line-and-arc outline: a line to to, or an arc about center.
Last modified on December 1, 2026