Simplify struct name

This commit is contained in:
Hanno Braun 2024-05-17 13:47:37 +02:00
parent 871144e918
commit 2f4453c7f1

View File

@ -39,7 +39,7 @@ pub enum ShellValidationError {
.0.len(), .0.len(),
.0 .0
)] )]
CurveCoordinateSystemMismatch(Vec<CurveCoordinateSystemMismatch>), CurveCoordinateSystemMismatch(Vec<CurveGeometryMismatch>),
/// [`Shell`] contains a half-edge that is not part of a pair /// [`Shell`] contains a half-edge that is not part of a pair
#[error("Half-edge has no sibling: {half_edge:#?}")] #[error("Half-edge has no sibling: {half_edge:#?}")]
@ -106,7 +106,7 @@ impl ShellValidationError {
surface_b: &SurfaceGeom, surface_b: &SurfaceGeom,
geometry: &Geometry, geometry: &Geometry,
config: &ValidationConfig, config: &ValidationConfig,
mismatches: &mut Vec<CurveCoordinateSystemMismatch>, mismatches: &mut Vec<CurveGeometryMismatch>,
) { ) {
// Let's check 4 points. Given that the most complex curves // Let's check 4 points. Given that the most complex curves
// we have right now are circles, 3 would be enough to check // we have right now are circles, 3 would be enough to check
@ -134,7 +134,7 @@ 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(CurveCoordinateSystemMismatch { mismatches.push(CurveGeometryMismatch {
half_edge_a: edge_a.clone(), half_edge_a: edge_a.clone(),
half_edge_b: edge_b.clone(), half_edge_b: edge_b.clone(),
point_curve, point_curve,
@ -369,7 +369,7 @@ impl fmt::Display for CoincidentHalfEdgeCurves {
/// ///
/// <https://github.com/hannobraun/fornjot/issues/2118> /// <https://github.com/hannobraun/fornjot/issues/2118>
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
pub struct CurveCoordinateSystemMismatch { pub struct CurveGeometryMismatch {
/// One of the half-edges, whose curves have mismatching geometry /// One of the half-edges, whose curves have mismatching geometry
pub half_edge_a: Handle<HalfEdge>, pub half_edge_a: Handle<HalfEdge>,