From 01e5ffbd05d5eff9f4b31cbe08a31bfdaa15eb69 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 23 Oct 2024 19:43:35 +0200 Subject: [PATCH] Group related methods --- crates/fj-core/src/geometry/geometry.rs | 26 ++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/crates/fj-core/src/geometry/geometry.rs b/crates/fj-core/src/geometry/geometry.rs index 8ee1b37fb..7d1f15ec1 100644 --- a/crates/fj-core/src/geometry/geometry.rs +++ b/crates/fj-core/src/geometry/geometry.rs @@ -180,14 +180,6 @@ impl Geometry { self.curve.get(curve) } - /// # Access the geometry generator for the provided curve - pub fn generator_for_curve( - &self, - curve: &Handle, - ) -> Option<&CurveGeom2> { - self.curve_generators.get(curve) - } - /// # Access the geometry of the provided surface /// /// ## Panics @@ -199,6 +191,19 @@ impl Geometry { .expect("Expected geometry of surface to be defined") } + /// # Access the geometry of the provided vertex + pub fn of_vertex(&self, vertex: &Handle) -> Option<&VertexGeom> { + self.vertex.get(vertex) + } + + /// # Access the geometry generator for the provided curve + pub fn generator_for_curve( + &self, + curve: &Handle, + ) -> Option<&CurveGeom2> { + self.curve_generators.get(curve) + } + /// # Access the geometry generator for the provided surface pub fn generator_for_surface( &self, @@ -207,11 +212,6 @@ impl Geometry { self.surface_generators.get(surface) } - /// # Access the geometry of the provided vertex - pub fn of_vertex(&self, vertex: &Handle) -> Option<&VertexGeom> { - self.vertex.get(vertex) - } - /// Access the geometry of the xy-plane pub fn xy_plane(&self) -> &SweptCurve { self.of_surface(&self.xy_plane)