Fix cylinder surface providing wrong origin point

This commit is contained in:
Hanno Braun 2024-08-22 20:42:02 +02:00
parent c54a17bbf2
commit 5c945f5b45

View File

@ -20,10 +20,7 @@ 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(),
}
u.origin()
}
/// # Return the triangle at the provided point on the surface