Expand description
EXPRESS SELECT and defined types of the IFC geometry schema.
Subtype answers come from tables generated for IFC4 ADD2 TC1 and IFC4X3
ADD2, listed in subtype::VERIFIED_SCHEMA_VERSIONS.
§Why selects need real code
A STEP attribute declared as IfcBooleanOperand is just an entity
reference in the file. Nothing in the record says which of the five
permitted kinds it is; you must resolve the reference and inspect the
target’s type. Every consumer that skips this grows an ad-hoc match on
type-name strings, and those drift from the schema.
§The trap: select members are usually abstract
IfcBooleanOperand permits IfcSolidModel, which is ABSTRACT – no file
ever contains one. Files contain IfcExtrudedAreaSolid, four levels below.
Resolution must be subtype-aware, so comparing the target’s type name
against the member list directly rejects every valid file. is_a answers
that question from a compiled-in table.
Each select resolves to the branch taken, so callers write an exhaustive
match the compiler checks instead of string comparisons they must keep in
sync with the schema.
Re-exports§
pub use aggregate_selects::ArcIndex;pub use aggregate_selects::CurveOnSurface;pub use aggregate_selects::CurveOrEdgeCurve;pub use aggregate_selects::DimensionCount;pub use aggregate_selects::GeometricSetSelect;pub use aggregate_selects::GridPlacementDirectionSelect;pub use aggregate_selects::LineIndex;pub use aggregate_selects::PointOrVertexPoint;pub use aggregate_selects::SegmentIndexSelect;pub use aggregate_selects::SurfaceOrFaceSurface;pub use entity_selects::Axis2Placement;pub use entity_selects::BooleanOperand;pub use entity_selects::CsgSelect;pub use entity_selects::SolidOrShell;pub use entity_selects::TrimmingSelect;pub use entity_selects::VectorOrDirection;pub use subtype::is_a;pub use subtype::is_a_in;pub use subtype::known_entities;pub use subtype::known_entities_in;pub use subtype::supertypes_of;pub use subtype::supertypes_of_in;
Modules§
- aggregate_
selects - The remaining geometry
SELECTtypes plus the two indexed defined types. - entity_
selects - The
SELECTtypes of the three geometry schemas. - subtype
- Subtype resolution without loading the EXPRESS schema at runtime.