diff --git a/src/kernel/geometry/curves/circle.rs b/src/kernel/geometry/curves/circle.rs index ddb641a08a..4a76b44f8f 100644 --- a/src/kernel/geometry/curves/circle.rs +++ b/src/kernel/geometry/curves/circle.rs @@ -28,7 +28,7 @@ impl Circle { } } - pub fn approx_vertices(&self, tolerance: f64, out: &mut Vec>) { + pub fn approx(&self, tolerance: f64, out: &mut Vec>) { let radius = self.radius.magnitude(); // To approximate the circle, we use a regular polygon for which diff --git a/src/kernel/geometry/curves/mod.rs b/src/kernel/geometry/curves/mod.rs index f0f834dc3b..e2cd128a09 100644 --- a/src/kernel/geometry/curves/mod.rs +++ b/src/kernel/geometry/curves/mod.rs @@ -55,7 +55,7 @@ impl Curve { /// instead. pub fn approx(&self, tolerance: f64, out: &mut Vec>) { match self { - Self::Circle(circle) => circle.approx_vertices(tolerance, out), + Self::Circle(circle) => circle.approx(tolerance, out), Self::Line(Line { a, b }) => out.extend([*a, *b]), } }