From 2716e4bb47fc3bc3279a3ee0e03b9d3021a524c0 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 28 Feb 2023 17:55:12 +0100 Subject: [PATCH] Replace access of `PartialSurfaceVertex` position --- crates/fj-kernel/src/builder/edge.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/crates/fj-kernel/src/builder/edge.rs b/crates/fj-kernel/src/builder/edge.rs index 097964e1c..4f12910d1 100644 --- a/crates/fj-kernel/src/builder/edge.rs +++ b/crates/fj-kernel/src/builder/edge.rs @@ -141,14 +141,13 @@ impl HalfEdgeBuilder for PartialHalfEdge { next_half_edge: Partial, ) -> Curve { let boundary = self.boundary; - let points_surface = - [&self.start_vertex, &next_half_edge.read().start_vertex].map( - |vertex| { - vertex.read().position.expect( - "Can't infer line segment without surface position", - ) - }, - ); + let points_surface = [ + &self.start_position(), + &next_half_edge.read().start_position(), + ] + .map(|position| { + position.expect("Can't infer line segment without surface position") + }); let path = if let [Some(start), Some(end)] = boundary { let points = [start, end].zip_ext(points_surface);