This commit is contained in:
Hanno Braun 2022-11-08 12:35:32 +01:00
parent c71d10893a
commit aeb686c5cd
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ impl CycleBuilder for PartialCycle {
.with_surface(Some(surface.clone())) .with_surface(Some(surface.clone()))
.update_as_line_from_points([position_prev, position_next]); .update_as_line_from_points([position_prev, position_next]);
let [from, to] = [(0., vertex_prev), (1., vertex_next)].map( let vertices = [(0., vertex_prev), (1., vertex_next)].map(
|(position, surface_form)| { |(position, surface_form)| {
Vertex::partial() Vertex::partial()
.with_curve(curve.clone()) .with_curve(curve.clone())
@ -80,7 +80,7 @@ impl CycleBuilder for PartialCycle {
half_edges.push( half_edges.push(
HalfEdge::partial() HalfEdge::partial()
.with_curve(curve) .with_curve(curve)
.with_vertices([from, to]), .with_vertices(vertices),
); );
continue; continue;