From a3b263dd932b8f688866ec85e8298ccce310f2e7 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 26 Jul 2024 19:24:48 +0200 Subject: [PATCH] Remove unused `SurfaceGeom::project_global_point` --- crates/fj-core/src/geometry/surface.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/crates/fj-core/src/geometry/surface.rs b/crates/fj-core/src/geometry/surface.rs index 9a42809bd..f0a942ed7 100644 --- a/crates/fj-core/src/geometry/surface.rs +++ b/crates/fj-core/src/geometry/surface.rs @@ -1,6 +1,6 @@ //! The geometry that defines a surface -use fj_math::{Line, Plane, Point, Transform, Vector}; +use fj_math::{Line, Point, Transform, Vector}; use super::GlobalPath; @@ -53,18 +53,6 @@ impl SurfaceGeom { Line::from_origin_and_direction(u.origin(), *v) } - /// Project the global point into the surface - pub fn project_global_point(&self, point: impl Into>) -> Point<2> { - let Self::Basic { u, v } = self; - - let GlobalPath::Line(line) = u else { - todo!("Projecting point into non-plane surface is not supported") - }; - - let plane = Plane::from_parametric(line.origin(), line.direction(), *v); - plane.project_point(point) - } - /// Transform the surface geometry #[must_use] pub fn transform(self, transform: &Transform) -> Self {