pub const MAX_CONTEXT_DEPTH: usize = 100;Expand description
Maximum ParentContext chain (IfcGeometricRepresentationSubContext ->
parent -> …) the export writers follow when they validate or look up a
representation context (#7791). These walks follow a different attribute
of a different entity from the PlacementRelTo walks bounded by
MAX_PLACEMENT_DEPTH, so they carry their own bound: borrowing the
placement one tied two unrelated limits together. Real files nest a
context two or three deep; every walk also keeps a visited set, so this
only bounds the work on a malformed file.