From 197374087716091b936995f728f2280201b2d4ff Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 19 Jun 2024 21:15:31 +0200 Subject: [PATCH] Define missing curve geometry in test --- .../checks/curve_geometry_mismatch.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/crates/fj-core/src/validation/checks/curve_geometry_mismatch.rs b/crates/fj-core/src/validation/checks/curve_geometry_mismatch.rs index 2d09602ef..6a20b6783 100644 --- a/crates/fj-core/src/validation/checks/curve_geometry_mismatch.rs +++ b/crates/fj-core/src/validation/checks/curve_geometry_mismatch.rs @@ -178,6 +178,17 @@ mod tests { half_edge_geom.boundary = half_edge_geom.boundary.reverse(); + let mut curve_geom = core + .layers + .geometry + .of_curve(half_edge.curve()) + .unwrap() + .local_on(face.surface()) + .unwrap() + .clone(); + curve_geom.path = + curve_geom.path.reverse(); + let half_edge = HalfEdge::new( half_edge.curve().clone(), half_edge.start_vertex().clone(), @@ -188,6 +199,12 @@ mod tests { &mut core.layers.geometry, ); + core.layers.geometry.define_curve( + half_edge.curve().clone(), + face.surface().clone(), + curve_geom, + ); + [half_edge] }, core,