mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-28 19:09:25 +00:00
Refactor to prepare for follow-on change
This commit is contained in:
parent
2bacac3a73
commit
82686e1a88
@ -101,13 +101,16 @@ impl SplitFace for Shell {
|
|||||||
.expect("Updated shell must contain updated face");
|
.expect("Updated shell must contain updated face");
|
||||||
|
|
||||||
// Build the edge that's going to divide the new faces.
|
// Build the edge that's going to divide the new faces.
|
||||||
let dividing_half_edge_a_to_d = HalfEdge::line_segment(
|
let dividing_half_edge_a_to_d = {
|
||||||
[b.start_position(), d.start_position()],
|
let half_edge = HalfEdge::line_segment(
|
||||||
None,
|
[b.start_position(), d.start_position()],
|
||||||
core,
|
None,
|
||||||
)
|
core,
|
||||||
.update_start_vertex(|_, _| b.start_vertex().clone(), core)
|
);
|
||||||
.insert(core);
|
half_edge
|
||||||
|
.update_start_vertex(|_, _| b.start_vertex().clone(), core)
|
||||||
|
.insert(core)
|
||||||
|
};
|
||||||
let dividing_half_edge_c_to_b = HalfEdge::from_sibling(
|
let dividing_half_edge_c_to_b = HalfEdge::from_sibling(
|
||||||
&dividing_half_edge_a_to_d,
|
&dividing_half_edge_a_to_d,
|
||||||
d.start_vertex().clone(),
|
d.start_vertex().clone(),
|
||||||
|
Loading…
Reference in New Issue
Block a user