mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-14 14:58:29 +00:00
Refactor to simplify
This commit is contained in:
parent
105f97ed68
commit
016488ae37
@ -96,7 +96,6 @@ impl ShellValidationError {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut mismatches = Vec::new();
|
|
||||||
let surface_a = geometry.of_surface(surface_a);
|
let surface_a = geometry.of_surface(surface_a);
|
||||||
let surface_b = geometry.of_surface(surface_b);
|
let surface_b = geometry.of_surface(surface_b);
|
||||||
|
|
||||||
@ -126,22 +125,21 @@ impl ShellValidationError {
|
|||||||
let distance = (a_global - b_global).magnitude();
|
let distance = (a_global - b_global).magnitude();
|
||||||
|
|
||||||
if distance > config.identical_max_distance {
|
if distance > config.identical_max_distance {
|
||||||
mismatches.push(CurveGeometryMismatch {
|
errors.push(
|
||||||
half_edge_a: edge_a.clone(),
|
Self::CurveCoordinateSystemMismatch(
|
||||||
half_edge_b: edge_b.clone(),
|
CurveGeometryMismatch {
|
||||||
point_curve,
|
half_edge_a: edge_a.clone(),
|
||||||
point_a: a_global,
|
half_edge_b: edge_b.clone(),
|
||||||
point_b: b_global,
|
point_curve,
|
||||||
distance,
|
point_a: a_global,
|
||||||
});
|
point_b: b_global,
|
||||||
|
distance,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
.into(),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for mismatch in mismatches {
|
|
||||||
errors.push(
|
|
||||||
Self::CurveCoordinateSystemMismatch(mismatch).into(),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user