diff --git a/crates/fj-kernel/src/builder/curve.rs b/crates/fj-kernel/src/builder/curve.rs index 44717b563..1f6dab6b3 100644 --- a/crates/fj-kernel/src/builder/curve.rs +++ b/crates/fj-kernel/src/builder/curve.rs @@ -1,18 +1,9 @@ -use fj_math::{Point, Scalar}; +use fj_math::Point; use crate::{geometry::path::SurfacePath, partial::PartialCurve}; /// Builder API for [`PartialCurve`] pub trait CurveBuilder { - /// Update partial curve to be a circle, from the provided radius - /// - /// Returns the updated path. - fn update_as_circle_from_center_and_radius( - &mut self, - center: impl Into>, - radius: impl Into, - ) -> SurfacePath; - /// Update partial curve to be a line, from the provided points /// /// Returns the updated path. @@ -31,16 +22,6 @@ pub trait CurveBuilder { } impl CurveBuilder for PartialCurve { - fn update_as_circle_from_center_and_radius( - &mut self, - center: impl Into>, - radius: impl Into, - ) -> SurfacePath { - let path = SurfacePath::circle_from_center_and_radius(center, radius); - self.path = Some(path.into()); - path - } - fn update_as_line_from_points( &mut self, points: [impl Into>; 2], diff --git a/crates/fj-kernel/src/builder/edge.rs b/crates/fj-kernel/src/builder/edge.rs index 3d31d7415..d28e5d48e 100644 --- a/crates/fj-kernel/src/builder/edge.rs +++ b/crates/fj-kernel/src/builder/edge.rs @@ -133,10 +133,9 @@ impl HalfEdgeBuilder for PartialHalfEdge { let arc = fj_math::Arc::from_endpoints_and_angle(start, end, angle_rad); - let path = self - .curve - .write() - .update_as_circle_from_center_and_radius(arc.center, arc.radius); + let path = + SurfacePath::circle_from_center_and_radius(arc.center, arc.radius); + self.curve.write().path = Some(path.into()); let [a_curve, b_curve] = [arc.start_angle, arc.end_angle].map(|coord| Point::from([coord]));