Remove unused SurfaceGeom::project_global_point

This commit is contained in:
Hanno Braun 2024-07-26 19:24:48 +02:00
parent 1b0b171f2f
commit a3b263dd93

View File

@ -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<3>>) -> 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 {