Skip to content

Commit

Permalink
Write to PartialHalfEdge's curve in builder
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jan 18, 2023
1 parent a097370 commit 2521e46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/fj-kernel/src/builder/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ impl HalfEdgeBuilder for PartialHalfEdge {
fn replace_surface(&mut self, surface: impl Into<Partial<Surface>>) {
let surface = surface.into();

self.curve.write().surface = surface.clone();

for vertex in &mut self.vertices {
vertex.replace_surface(surface.clone());
}
Expand Down Expand Up @@ -136,6 +138,8 @@ impl HalfEdgeBuilder for PartialHalfEdge {
) {
let surface = surface.into();

self.curve.write().surface = surface.clone();

for (vertex, point) in self.vertices.each_mut_ext().zip_ext(points) {
vertex.curve.write().surface = surface.clone();

Expand Down

0 comments on commit 2521e46

Please sign in to comment.