Skip to main content

Module operator

Module operator 

Source
Expand description

IfcCartesianTransformationOperator: the mapped-item transform.

An IfcMappedItem reuses one representation many times (a door type placed 400 times) and each instance carries an operator saying how to move, rotate and scale the shared geometry. That makes this the one place in IFC where a transform may be scaled, including non-uniformly, so it cannot be folded into the rigid placement path.

§Slots are shared across the whole family

Axis1, Axis2, LocalOrigin and Scale are declared by the abstract supertype, so they occupy slots 0..=3 in every concrete subtype. The subtypes append: Axis3 at 4 (3D), Scale2 at 4 (2D non-uniform), and Axis3, Scale2, Scale3 at 4..=6 (3D non-uniform). Note that the 2D and 3D non-uniform variants put Scale2 at different indices.

§Scale defaults chain

Scl := NVL(Scale, 1.0), then Scl2 := NVL(Scale2, Scl) and Scl3 := NVL(Scale3, Scl). So a non-uniform operator with only Scale set is uniform, and Scale2 defaults to Scale, not to 1.0. Defaulting the secondary axes to 1.0 silently squashes every instance of the mapped item.

§Axis1 is X, Axis2 is Y (unlike a placement)

A placement gives Z first (Axis) and X second (RefDirection). An operator gives X first (Axis1), Y second (Axis2), Z last (Axis3). Reading them in placement order transposes the frame.

Structs§

CartesianTransformationOperator
The attributes every operator shares, from the abstract supertype.
CartesianTransformationOperator2D
A borrowed view of an IfcCartesianTransformationOperator2D.
CartesianTransformationOperator2DnonUniform
A borrowed view of an IfcCartesianTransformationOperator2DnonUniform.
CartesianTransformationOperator3D
A borrowed view of an IfcCartesianTransformationOperator3D.
CartesianTransformationOperator3DnonUniform
A borrowed view of an IfcCartesianTransformationOperator3DnonUniform.

Functions§

operator_transform
Resolve any IfcCartesianTransformationOperator subtype to a transform.