Merge pull request #2461 from hannobraun/surface

Fix `SurfaceGeom::origin` providing wrong point for cylinder surface
This commit is contained in:
Hanno Braun 2024-08-22 20:48:13 +02:00 committed by GitHub
commit 258e6391c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,11 +19,7 @@ pub struct SurfaceGeom {
impl SurfaceGeom {
/// # Access the origin of the surface
pub fn origin(&self) -> Point<3> {
let Self { u, .. } = self;
match u {
Path::Circle(circle) => circle.center(),
Path::Line(line) => line.origin(),
}
self.u.origin()
}
/// # Return the triangle at the provided point on the surface