The local X axis an IfcAxis2Placement3D has when its RefDirection is
absent ($), as ifc-lite's renderer computes it (#5922).
This is the single TypeScript definition. It mirrors build_axis2_matrix
in rust/geometry/src/placement/mod.rs, fed by the canonical
Axis2Placement readers for object and shape placements:
they pass world X (1,0,0) for a $ RefDirection, and
build_axis2_matrix projects it onto the plane normal to the normalised
Axis. (Conic surface parametrisation in advanced_face/conics.rs picks its
own reference direction; that is a different concern, not this fill.) That
is the schema's IfcFirstProjAxis(Axis, $) everywhere except next to the
X axis:
when the projection is no longer than 1e-9, i.e. the Axis is +X or -X
to within rounding, the renderer takes (0,0,1) x Axis instead. For
exactly +X that is (0,1,0), the schema's own switch to world Y. For
exactly -X, where the schema's projection of X vanishes and it gives
no answer, it is (0,-1,0).
an Axis near X but outside that noise floor is projected, normalised,
like the schema: a +Y offset on +X gives about (0,-1,0). Until #7751
the cut was 1e-6 and that band gave about (0,+1,0).
The local X axis an
IfcAxis2Placement3Dhas when itsRefDirectionis absent ($), as ifc-lite's renderer computes it (#5922).This is the single TypeScript definition. It mirrors
build_axis2_matrixinrust/geometry/src/placement/mod.rs, fed by the canonicalAxis2Placementreaders for object and shape placements: they pass world X(1,0,0)for a$RefDirection, andbuild_axis2_matrixprojects it onto the plane normal to the normalised Axis. (Conic surface parametrisation inadvanced_face/conics.rspicks its own reference direction; that is a different concern, not this fill.) That is the schema'sIfcFirstProjAxis(Axis, $)everywhere except next to the X axis:(0,0,1) x Axisinstead. For exactly+Xthat is(0,1,0), the schema's own switch to world Y. For exactly-X, where the schema's projection of X vanishes and it gives no answer, it is(0,-1,0).(0,-1,0). Until #7751 the cut was 1e-6 and that band gave about(0,+1,0).