DEFAULT_CAP

Constant DEFAULT_CAP 

Source
pub const DEFAULT_CAP: u64 = 500_000;
Expand description

Default per-boolean exact-evaluation cap for the interactive profile.

Calibrated against the model corpus: the worst healthy boolean (a dense steel element) needs ~15k exact evaluations; almost all are well under 5k. This cap is 33× that worst case, so it never false-trips a legitimate cut (a false trip degrades a real cut to an AABB box — wrong geometry — which is worse than finishing slowly). It only engages on the pathological near-coplanar pattern of #1109 (Tekla half-space clips / Revit flush cuts), where the exact-tier count runs orders of magnitude higher and would otherwise never finish. The coplanar fast path (the companion perf fix) keeps hard-but-sound models well under this cap; this is the safety net that turns the indefinite 95% hang into a finite load. set_cap (or IFC_LITE_CSG_BUDGET) tunes it; set_cap(None) lifts it entirely for the server/offline-export profile, where “exact but slow” is acceptable.