This commit is contained in:
Hanno Braun 2022-11-08 13:28:02 +01:00
parent e24c56b69a
commit 8ede469d00
1 changed files with 5 additions and 8 deletions

View File

@ -97,14 +97,11 @@ impl PartialCycle {
half_edge.front().surface_form().into_full(objects)?; half_edge.front().surface_form().into_full(objects)?;
*half_edge = half_edge.clone().merge_with( *half_edge = half_edge.clone().merge_with(
PartialHalfEdge::default() PartialHalfEdge::default().with_vertices([
.with_back_vertex( PartialVertex::default().with_surface_form(back_vertex),
PartialVertex::default().with_surface_form(back_vertex), PartialVertex::default()
) .with_surface_form(front_vertex.clone()),
.with_front_vertex( ]),
PartialVertex::default()
.with_surface_form(front_vertex.clone()),
),
); );
previous_vertex = Some(MaybePartial::from(front_vertex)); previous_vertex = Some(MaybePartial::from(front_vertex));