This commit is contained in:
Hanno Braun 2022-03-22 15:43:30 +01:00
parent ce6f080424
commit f20451bec3

View File

@ -104,9 +104,7 @@ pub fn approximate_cycle(cycle: &Cycle, tolerance: Scalar) -> Vec<Point<3>> {
let mut edge_points = Vec::new(); let mut edge_points = Vec::new();
edge.curve().approx(tolerance, &mut edge_points); edge.curve().approx(tolerance, &mut edge_points);
let edge_points = approximate_edge(edge_points, edge.vertices()); points.extend(approximate_edge(edge_points, edge.vertices()));
points.extend(edge_points);
} }
points.dedup(); points.dedup();