mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-09 20:38:30 +00:00
Prepare for follow-on change
This commit is contained in:
parent
39afc7eb0a
commit
9cddbb3c5f
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user