From 082dd9f1a9512093d8fb6c39b68c3bb577b4e4ed Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 19 Jun 2024 21:39:29 +0200 Subject: [PATCH] Read path from curve geometry in edge approx code --- crates/fj-core/src/algorithms/approx/edge.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/fj-core/src/algorithms/approx/edge.rs b/crates/fj-core/src/algorithms/approx/edge.rs index 19fc1d799..bc9ea427b 100644 --- a/crates/fj-core/src/algorithms/approx/edge.rs +++ b/crates/fj-core/src/algorithms/approx/edge.rs @@ -61,7 +61,10 @@ impl Approx for (&Handle, &Handle) { approx.points.into_iter().map(|point| { let point_surface = geometry - .of_half_edge(half_edge) + .of_curve(half_edge.curve()) + .unwrap() + .local_on(surface) + .unwrap() .path .point_from_path_coords(point.local_form);