Refactor to prepare for follow-on change

This commit is contained in:
Hanno Braun 2024-03-20 13:59:36 +01:00
parent 35b731d850
commit 4d8d57728b

View File

@ -91,13 +91,14 @@ pub trait BuildShell {
.zip_ext([[a, b], [b, c], [c, a]]) .zip_ext([[a, b], [b, c], [c, a]])
.zip_ext(curves_and_boundaries) .zip_ext(curves_and_boundaries)
.map(|((vertex, positions), (curve, boundary))| { .map(|((vertex, positions), (curve, boundary))| {
HalfEdge::line_segment( let half_edge = HalfEdge::line_segment(
positions, positions,
Some(boundary.reverse().inner), Some(boundary.reverse().inner),
core, core,
) );
.update_start_vertex(|_, _| vertex, core) half_edge
.update_curve(|_, _| curve, core) .update_start_vertex(|_, _| vertex, core)
.update_curve(|_, _| curve, core)
}) })
}; };