mirror of
https://github.com/hannobraun/Fornjot
synced 2025-08-17 06:36:05 +00:00
Avoid use of BuildHalfEdge::circle
This commit is contained in:
parent
3bc1c23885
commit
a88b054754
@ -43,17 +43,14 @@ impl AddHole for Shell {
|
|||||||
path: impl Into<Vector<3>>,
|
path: impl Into<Vector<3>>,
|
||||||
core: &mut Core,
|
core: &mut Core,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let entry = HalfEdge::circle(
|
let entry = Cycle::circle(
|
||||||
location.position,
|
location.position,
|
||||||
radius,
|
radius,
|
||||||
location.face.surface().clone(),
|
location.face.surface().clone(),
|
||||||
core,
|
core,
|
||||||
);
|
);
|
||||||
let hole = Region::empty(core)
|
let hole = Region::empty(core)
|
||||||
.update_exterior(
|
.update_exterior(|_, _| entry.clone(), core)
|
||||||
|_, core| Cycle::empty().add_half_edges([entry.clone()], core),
|
|
||||||
core,
|
|
||||||
)
|
|
||||||
.sweep_region(
|
.sweep_region(
|
||||||
location.face.surface().clone(),
|
location.face.surface().clone(),
|
||||||
None,
|
None,
|
||||||
@ -68,19 +65,7 @@ impl AddHole for Shell {
|
|||||||
location.face,
|
location.face,
|
||||||
|face, core| {
|
|face, core| {
|
||||||
[face.update_region(
|
[face.update_region(
|
||||||
|region, core| {
|
|region, core| region.add_interiors([entry], core),
|
||||||
region.add_interiors(
|
|
||||||
[Cycle::empty().add_joined_edges(
|
|
||||||
[(
|
|
||||||
entry.clone(),
|
|
||||||
*core.layers.geometry.of_half_edge(&entry),
|
|
||||||
)],
|
|
||||||
location.face.surface().clone(),
|
|
||||||
core,
|
|
||||||
)],
|
|
||||||
core,
|
|
||||||
)
|
|
||||||
},
|
|
||||||
core,
|
core,
|
||||||
)]
|
)]
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user