mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 18:38:28 +00:00
Merge pull request #2461 from hannobraun/surface
Fix `SurfaceGeom::origin` providing wrong point for cylinder surface
This commit is contained in:
commit
258e6391c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user