Prepare for follow-on change

This commit is contained in:
Hanno Braun 2024-06-28 18:15:26 +02:00
parent 39afc7eb0a
commit 9cddbb3c5f

View File

@ -60,8 +60,10 @@ pub trait BuildHalfEdge {
let path = let path =
SurfacePath::circle_from_center_and_radius(arc.center, arc.radius); SurfacePath::circle_from_center_and_radius(arc.center, arc.radius);
let boundary = let boundary = CurveBoundary {
[arc.start_angle, arc.end_angle].map(|coord| Point::from([coord])); inner: [arc.start_angle, arc.end_angle]
.map(|coord| Point::from([coord])),
};
let half_edge = HalfEdge::unjoined(core).insert(core); let half_edge = HalfEdge::unjoined(core).insert(core);
@ -70,12 +72,9 @@ pub trait BuildHalfEdge {
surface, surface,
LocalCurveGeom { path }, LocalCurveGeom { path },
); );
core.layers.geometry.define_half_edge( core.layers
half_edge.clone(), .geometry
HalfEdgeGeom { .define_half_edge(half_edge.clone(), HalfEdgeGeom { boundary });
boundary: boundary.into(),
},
);
half_edge half_edge
} }