From 153f8060aac945f8f5c7fa363d4c33defbf54208 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Mon, 24 Jun 2024 22:25:28 +0200 Subject: [PATCH] Circumvent redundant abstraction layer --- crates/fj-core/src/algorithms/approx/cycle.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/fj-core/src/algorithms/approx/cycle.rs b/crates/fj-core/src/algorithms/approx/cycle.rs index 256487eee..c2495fb0b 100644 --- a/crates/fj-core/src/algorithms/approx/cycle.rs +++ b/crates/fj-core/src/algorithms/approx/cycle.rs @@ -11,7 +11,7 @@ use crate::{ }; use super::{ - half_edge::{HalfEdgeApprox, HalfEdgeApproxCache}, + half_edge::{approx_half_edge, HalfEdgeApprox, HalfEdgeApproxCache}, Approx, ApproxPoint, Tolerance, }; @@ -32,8 +32,7 @@ impl Approx for (&Cycle, &Handle) { .half_edges() .iter() .map(|half_edge| { - (half_edge, surface) - .approx_with_cache(tolerance, cache, geometry) + approx_half_edge(half_edge, surface, tolerance, cache, geometry) }) .collect();