mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-08 20:08:30 +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 {
|
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;
|
self.u.origin()
|
||||||
match u {
|
|
||||||
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…
Reference in New Issue
Block a user