From 2160631f5abfae7b9ae07b1994704433442ca16d Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 26 Mar 2024 11:27:14 +0100 Subject: [PATCH] Refactor to prepare for follow-on change --- crates/fj-core/src/algorithms/bounding_volume/edge.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/fj-core/src/algorithms/bounding_volume/edge.rs b/crates/fj-core/src/algorithms/bounding_volume/edge.rs index 6a5fa203a..76523409f 100644 --- a/crates/fj-core/src/algorithms/bounding_volume/edge.rs +++ b/crates/fj-core/src/algorithms/bounding_volume/edge.rs @@ -11,8 +11,9 @@ impl super::BoundingVolume<2> for &Handle { let half_edge = self; let half_edge = geometry.of_half_edge(half_edge); + let path = half_edge.path; - match half_edge.path { + match path { SurfacePath::Circle(circle) => { // Just calculate the AABB of the whole circle. This is not the // most precise, but it should do for now. @@ -27,7 +28,7 @@ impl super::BoundingVolume<2> for &Handle { } SurfacePath::Line(_) => { let points = half_edge.boundary.inner.map(|point_curve| { - half_edge.path.point_from_path_coords(point_curve) + path.point_from_path_coords(point_curve) }); Some(Aabb::<2>::from_points(points))