Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Sep 12, 2024
1 parent be1b621 commit d76dd8a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions crates/fj-core/src/geometry/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,7 @@ impl SurfaceGeom {
) -> (Triangle<3>, [Scalar; 3]) {
let point_surface = point_surface.into();

let line_segment = match &self.u {
Path::Circle(circle) => {
circle.line_segment_at([point_surface.u], tolerance)
}
Path::Line(line) => {
line.line_segment_at([point_surface.u], tolerance)
}
};

let line_segment = self.u.line_segment_at([point_surface.u], tolerance);
let [a, b] = line_segment
.map(|point_global| point_global + self.v * point_surface.v);

Expand Down

0 comments on commit d76dd8a

Please sign in to comment.