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 f60e50c commit 34cdfd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/fj-core/src/geometry/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl SurfaceGeom {
) -> (Triangle<3>, [Scalar; 3]) {
let point_surface = point_surface.into();

let [a, b] = match &self.u {
let line_segment = match &self.u {
Path::Circle(circle) => {
let params = PathApproxParams::for_circle(circle, tolerance);

Expand All @@ -87,8 +87,8 @@ impl SurfaceGeom {
}
};

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

let c = a + (b - a) / 2.;
let triangle = Triangle::from([a, b, c]);
Expand Down

0 comments on commit 34cdfd2

Please sign in to comment.