Module limits

Module limits 

Source
Expand description

Bounds on walks over file-supplied entity references, plus the large-coordinate threshold every crate gates the RTC re-base on (LARGE_COORD_THRESHOLD_METERS).

A cap bounds one path’s LENGTH only. A walk that can revisit also needs a cycle guard, and one that fans out over a DAG also needs a work budget; the three are not interchangeable and choosing wrongly fails silently in both directions. The rule for picking, and the scope rule for the visited set, are in AGENTS.md under “Bounding walks over file-supplied references” — there rather than here, because whoever needs it is adding a NEW walk somewhere else and will not open this file.

Enums§

RtcVerdict
What an RTC detector concluded about a model’s coordinates. The anchor and the decision travel together because the decision is not a property of the anchor: the placement-bounds scan decides on the bbox CORNERS and answers with the bbox CENTRE, which can be inside the threshold (8.5 km centre, 15 km corner) or even the origin, while the coordinates still need re-basing.

Constants§

LARGE_COORD_THRESHOLD_METERS
The large-coordinate threshold (metres): a world coordinate whose magnitude exceeds this needs RTC re-basing before it is cast to f32, or the model renders with vertex jitter.
MAX_MAPPED_ITEM_DEPTH
Maximum IfcMappedItem → IfcRepresentationMap → MappedRepresentation.Items nesting any walk in this workspace will follow.
MAX_PLACEMENT_DEPTH
Maximum IfcLocalPlacement.PlacementRelTo chain any walk in this workspace will follow. A chain longer than this composes only its first MAX_PLACEMENT_DEPTH + 1 placements and the rest is dropped — silently, on every site that uses it.

Functions§

coord_is_large
True when any component of point (metres) lies strictly beyond LARGE_COORD_THRESHOLD_METERS from the origin.