Expand description
Resolve a raw reference into a type-checked resource view.
Curve, surface and solid views keep their raw *_ref getters, because a
caller walking the graph often wants the id alone. The resolving accessors
beside them all need the same two checks – the reference is not dangling,
and it names an entity of the declared type – and doing those checks in one
place keeps the errors identical everywhere:
- a dangling reference is
GeometryError::MissingEntitynaming the referrer, so the error points at the record that is wrong; - a reference to the wrong type is
GeometryError::WrongEntityTypenaming the target, never a view that silently misreads its slots.
Only entity types are checked here. A view’s own slot errors (a 1-element point, a zero direction) still surface when the caller reads it.
An attribute typed by an abstract supertype (IfcSurface,
IfcBoundedCurve) has no resolving accessor: it stays a reference,
because choosing among the concrete subtypes is dispatch, and dispatch
belongs to lower. IfcProfileDef has no view here either;
input::profile owns profile reading.
Functions§
- axis1_
placement - Resolve a reference that must be an
IfcAxis1Placement. - axis2_
placement - Resolve a reference typed as the
IfcAxis2PlacementSELECT. - axis2_
placement_ 3d - Resolve a reference that must be an
IfcAxis2Placement3D. - cartesian_
point - Resolve a reference that must be an
IfcCartesianPoint. - cartesian_
point_ list - Resolve a reference typed as the abstract
IfcCartesianPointList. - cartesian_
point_ list_ 3d - Resolve a reference that must be an
IfcCartesianPointList3D. - cartesian_
points - Resolve every reference of a
LIST OF IfcCartesianPoint, in order. - direction
- Resolve a reference that must be an
IfcDirection.