mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 18:08:26 +00:00
Remove unused SurfaceGeom::project_global_point
This commit is contained in:
parent
1b0b171f2f
commit
a3b263dd93
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user