Skip to content

Commit

Permalink
Merge pull request #2461 from hannobraun/surface
Browse files Browse the repository at this point in the history
Fix `SurfaceGeom::origin` providing wrong point for cylinder surface
  • Loading branch information
hannobraun committed Aug 22, 2024
2 parents c54a17b + bed5d5c commit 258e639
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/fj-core/src/geometry/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 258e639

Please sign in to comment.