pub fn scale_segments(
base: usize,
min: usize,
max: usize,
q: TessellationQuality,
) -> usizeExpand description
Scale a tessellator’s segment count by the selected quality level.
base is the segment count the call site computed by its own (possibly
adaptive) rule; min/max are that site’s existing clamp bounds. At
TessellationQuality::Medium the result is exactly base.clamp(min, max)
— the historical value. Away from Medium, both base and the clamp bounds
are scaled by TessellationQuality::density_factor, so detail genuinely
rises or falls instead of saturating at the old cap. The result is monotonic
non-decreasing across the five levels.