Read vertex geometry in validation check

This commit is contained in:
Hanno Braun 2024-06-27 20:54:03 +02:00
parent 86650e61a2
commit b655fb6dbf

View File

@ -99,7 +99,12 @@ fn check_cycle<'r>(
) -> impl Iterator<Item = AdjacentHalfEdgesNotConnected> + 'r { ) -> impl Iterator<Item = AdjacentHalfEdgesNotConnected> + 'r {
cycle.half_edges().pairs().filter_map(|(first, second)| { cycle.half_edges().pairs().filter_map(|(first, second)| {
let end_pos_of_first_half_edge = { let end_pos_of_first_half_edge = {
let [_, end] = geometry.of_half_edge(first).boundary.inner; let end = geometry
.of_vertex(second.start_vertex())
.unwrap()
.local_on(first.curve())
.unwrap()
.position;
geometry geometry
.of_curve(first.curve()) .of_curve(first.curve())
.unwrap() .unwrap()