mirror of
https://github.com/hannobraun/Fornjot
synced 2025-08-26 12:06:34 +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
|
/// # Access the origin of the surface
|
||||||
pub fn origin(&self) -> Point<3> {
|
pub fn origin(&self) -> Point<3> {
|
||||||
let Self { u, .. } = self;
|
let Self { u, .. } = self;
|
||||||
match u {
|
u.origin()
|
||||||
Path::Circle(circle) => circle.center(),
|
|
||||||
Path::Line(line) => line.origin(),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// # Return the triangle at the provided point on the surface
|
/// # Return the triangle at the provided point on the surface
|
||||||
|
Loading…
x
Reference in New Issue
Block a user