mirror of
https://github.com/hannobraun/Fornjot
synced 2025-08-13 04:36:05 +00:00
Fix cylinder surface providing wrong origin point
This commit is contained in:
parent
c54a17bbf2
commit
5c945f5b45
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user