has_geometry_by_name

Function has_geometry_by_name 

Source
pub fn has_geometry_by_name(type_name: &str) -> bool
Expand description

Check if a type name (UPPERCASE STEP string) represents an IfcProduct subtype that can bear geometry (has ObjectPlacement + Representation).

Implementation:

  1. Modern names go through IfcType::from_str and are accepted iff they inherit from IfcProduct, with a small block-list for abstract spatial containers (IfcBuildingStorey, IfcFacility, IfcFacilityPart, IfcSpatialElement, IfcSpatialStructureElement) that don’t carry geometry directly. IfcSpace, IfcSite, IfcSpatialZone and IfcBuilding (and any concrete subtype of those) are intentionally kept — they have boundary representations the renderer consumes. See [is_non_geometric_spatial] for how that exempt set is maintained.
  2. The only non-EXPRESS compatibility spellings are the documented exporter stratum aliases.
  3. Reinforcement variants not covered above fall back to a substring match (REINFORCING… / REINFORCED…).