Update variable name

This commit is contained in:
Hanno Braun 2023-10-05 13:08:22 +02:00
parent 4b42aedb01
commit 0dfe80b10b

View File

@ -56,14 +56,11 @@ impl Approx for (&Edge, &Surface) {
.get_curve_approx(edge.curve().clone(), edge.boundary());
match cached.segments.pop() {
Some((boundary, segment)) if cached.segments.is_empty() => {
Some((boundary, points)) if cached.segments.is_empty() => {
// If the cached approximation has a single segment,
// that means everything we need is available, and we
// can use the cached approximation as-is.
CurveApproxSegment {
boundary,
points: segment,
}
CurveApproxSegment { boundary, points }
}
_ => {
// If we make it here, there are holes in the