mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-26 18:16:11 +00:00
Refactor to prepare for follow-on change
This commit is contained in:
parent
35b731d850
commit
4d8d57728b
@ -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)
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user