From 9cddbb3c5fd13312e7207d1583707d68444f21ad Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 28 Jun 2024 18:15:26 +0200 Subject: [PATCH] Prepare for follow-on change --- crates/fj-core/src/operations/build/half_edge.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/crates/fj-core/src/operations/build/half_edge.rs b/crates/fj-core/src/operations/build/half_edge.rs index 890d5b651..f33791f53 100644 --- a/crates/fj-core/src/operations/build/half_edge.rs +++ b/crates/fj-core/src/operations/build/half_edge.rs @@ -60,8 +60,10 @@ pub trait BuildHalfEdge { let path = SurfacePath::circle_from_center_and_radius(arc.center, arc.radius); - let boundary = - [arc.start_angle, arc.end_angle].map(|coord| Point::from([coord])); + let boundary = CurveBoundary { + inner: [arc.start_angle, arc.end_angle] + .map(|coord| Point::from([coord])), + }; let half_edge = HalfEdge::unjoined(core).insert(core); @@ -70,12 +72,9 @@ pub trait BuildHalfEdge { surface, LocalCurveGeom { path }, ); - core.layers.geometry.define_half_edge( - half_edge.clone(), - HalfEdgeGeom { - boundary: boundary.into(), - }, - ); + core.layers + .geometry + .define_half_edge(half_edge.clone(), HalfEdgeGeom { boundary }); half_edge }