Module representation

Module representation 

Source
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§

MappedLevel
One IfcMappedItem → IfcRepresentationMap → MappedRepresentation level.
ProductShape
IfcProductDefinitionShape.Representations of a product, decoded once.
RepresentationWalk
The walk: which representations (Select) and how mapped items nest.
WalkBudgetRefusal
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.
NestedMaps
What an IfcMappedItem among 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 Representations list; each is a filter over the same list, in list order.
ShapeError
Why a product’s shape chain could not be read. ShapeError converts into the geometry Error with the exact message text the strict element paths have always reported.
WalkRefusal
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§

WalkVisitor

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 (its IfcProductDefinitionShape Representations, decoded) that the element meshing paths mesh, in order: each IfcShapeRepresentation whose effective type is body geometry, or an annotation’s 2D fill, or that names no type at all, minus a MappedRepresentation when the element also carries direct body geometry. Anything that must agree with what renders (the IgnoreOpaque opening filter in ifc-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 its Representation (attribute 6) is $. Every other malformation is an Err carrying 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 an IfcShapeRepresentation, an IfcTopologyRepresentation or a mapped representation, decoded.