Skip to content

Commit

Permalink
Add more information to validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Aug 12, 2024
1 parent cb8fc19 commit 4856735
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ pub struct CoincidentHalfEdgesAreNotSiblings {
/// The second half-edge
pub half_edge_b: Handle<HalfEdge>,

/// The points on the half-edges that were checked
pub points: Vec<[Point<3>; 2]>,

/// The distances between the points on the half-edges that were checked
pub distances: Vec<Scalar>,
}
Expand Down Expand Up @@ -138,7 +141,7 @@ impl ValidationCheck<Shell> for CoincidentHalfEdgesAreNotSiblings {
continue;
};

let (_, distances): (Vec<_>, Vec<_>) =
let (points, distances): (Vec<_>, Vec<_>) =
points_and_distances.into_iter().unzip();

// If all points on distinct curves are within
Expand All @@ -160,6 +163,7 @@ impl ValidationCheck<Shell> for CoincidentHalfEdgesAreNotSiblings {
vertices,
half_edge_a: half_edge_a.clone(),
half_edge_b: half_edge_b.clone(),
points,
distances,
})
}
Expand Down

0 comments on commit 4856735

Please sign in to comment.