From 351a61cd7ce1a4fccaca0047c014b25d7a6f8bd6 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 22 Aug 2024 21:03:14 +0200 Subject: [PATCH] Inline redundant variable --- crates/fj-core/src/geometry/surface.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/fj-core/src/geometry/surface.rs b/crates/fj-core/src/geometry/surface.rs index 8a1a0b28d..badd877f9 100644 --- a/crates/fj-core/src/geometry/surface.rs +++ b/crates/fj-core/src/geometry/surface.rs @@ -86,11 +86,9 @@ impl SurfaceGeom { Triangle::from(triangle_points_in_global_space) } Path::Line(line) => { - let b = self.v; - let point_global = line.origin() + line.direction() * point_surface.u - + b * point_surface.v; + + self.v * point_surface.v; // We don't need to approximate a plane, so our triangle can be // arbitrarily large or small. Here we choose the smallest