From f20451bec35096738044b1dcc7a48d647083b6ed Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 22 Mar 2022 15:43:30 +0100 Subject: [PATCH] Refactor --- fj-kernel/src/algorithms/approximation.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fj-kernel/src/algorithms/approximation.rs b/fj-kernel/src/algorithms/approximation.rs index b631b4435..90b8e9a70 100644 --- a/fj-kernel/src/algorithms/approximation.rs +++ b/fj-kernel/src/algorithms/approximation.rs @@ -104,9 +104,7 @@ pub fn approximate_cycle(cycle: &Cycle, tolerance: Scalar) -> Vec> { let mut edge_points = Vec::new(); edge.curve().approx(tolerance, &mut edge_points); - let edge_points = approximate_edge(edge_points, edge.vertices()); - - points.extend(edge_points); + points.extend(approximate_edge(edge_points, edge.vertices())); } points.dedup();