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 =
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
}