Expand description
The structural home of a product’s representations: the
Representation(6) → IfcProductDefinitionShape.Representations(2) → Items(3)
chain, which representations a caller means (Select) and a visitor walk
over the items and the IfcMappedItems among them (RepresentationWalk).
Decoder-only: this module meshes nothing and owns no cache. The router, RTC-vote probes and the layer slicer are all callers of it.
Structs§
- Mapped
Level - One
IfcMappedItem → IfcRepresentationMap → MappedRepresentationlevel. - Product
Shape IfcProductDefinitionShape.Representationsof a product, decoded once.- Representation
Walk - The walk: which representations (
Select) and how mapped items nest. - Walk
Budget Refusal - Opaque, cold-allocated work-budget evidence. Its representation is private so future diagnostic fields do not change visitor matches or common Results.
- WalkCtx
- Where a visit happens.
Enums§
- Flow
- A visitor’s answer.
- Nested
Maps - What an
IfcMappedItemamong the items means to the walk. - Select
- Which of a product’s representations a caller means. The variants are the
distinct questions the router asks of one
Representationslist; each is a filter over the same list, in list order. - Shape
Error - Why a product’s shape chain could not be read.
ShapeErrorconverts into the geometryErrorwith the exact message text the strict element paths have always reported. - Walk
Refusal - Why the walk declined to enter, or to continue past, a mapped item. All
but the items of an entered level are refused before
enter_map.
Constants§
- MAX_
WALK_ LEVELS - Recommended default for both independent Expand work meters.
Traits§
Functions§
- mapped_
item_ representation_ id - Read MappingSource -> MappedRepresentation, decoding only the source. Callers admit mapped items themselves. No source-type admission is applied: legacy colour/layer probes accept even a wrongly typed source with slot 1. Missing/non-reference slots and undecodable sources return None; the target ID is returned even when dangling, so callers can probe their indexes first.
- meshed_
representations - The representations of
element(itsIfcProductDefinitionShapeRepresentations, decoded) that the element meshing paths mesh, in order: eachIfcShapeRepresentationwhose effective type is body geometry, or an annotation’s 2D fill, or that names no type at all, minus aMappedRepresentationwhen the element also carries direct body geometry. Anything that must agree with what renders (theIgnoreOpaqueopening filter inifc-lite-processing, #4699) selects through this. - pds_
representation_ ids - Representation IDs in document order, without type admission or decoding.
Like
get_refs, accepts bare references and typed reference sets, skipping non-reference members. Missing or invalid values produce no IDs. - product_
shape - The shape of
element:Ok(None)iff itsRepresentation(attribute 6) is$. Every other malformation is anErrcarrying today’s message text; the probes that abstain on malformed input call.ok().flatten(), so the leniency stays visible at the call site. - product_
shape_ id - Identity only: no type admission, shape decoding or representation selection. Routing hashes must also retain their existing handling of dangling references.
- rep_
item_ ids - Items in list order, skipping non-references and missing/non-list Items. No item is decoded here: RTC must try its speculative fast point read first, skip undecodable items itself, and stop without touching later items on a hit.
- rep_
items Items(attribute 3) of anIfcShapeRepresentation, anIfcTopologyRepresentationor a mapped representation, decoded.