MAX_DEPTH

Constant MAX_DEPTH 

Source
const MAX_DEPTH: usize = 8;
Expand description

Maximum recursion depth.

Recursion is bounded to this depth, so the total number of subdivisions will not exceed two to this power.

This is primarily a “belt and suspenders” robustness guard. In normal operation, the recursion bound should never be reached, as accuracy improves very quickly on subdivision. For unreasonably large coordinate values or small tolerances, it is possible, and in those cases the result will be out of tolerance.

Perhaps should be configurable.