pub fn begin_element()Expand description
Begin an ELEMENT scope (#1109 follow-up): reset the per-element accumulator
and snapshot the per-element cap, BEFORE the element’s booleans run, so every
boolean the element issues accumulates into one budget and a hard element
degrades as a whole. Mesh production opens it through enter_element,
which also restores the enclosing element’s scope; call this directly only
where no element can be nested on the same thread.
The per-element cap is unbounded whenever the per-boolean profile is unbounded
(set_cap(None) / IFC_LITE_CSG_BUDGET=0 — the server/offline-export
profile), so the SAME single switch keeps the server exact. Otherwise it is
the configured [ELEMENT_CAP] (or its IFC_LITE_CSG_ELEMENT_BUDGET override).