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();