mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-11 05:18:26 +00:00
Read vertex geometry in SplitFace::split_face
This commit is contained in:
parent
aec37de69b
commit
8648590fa8
@ -104,26 +104,40 @@ impl SplitFace for Shell {
|
|||||||
|
|
||||||
// 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 = {
|
let dividing_half_edge_a_to_d = {
|
||||||
let start = core.layers.geometry.of_half_edge(&b).start_position(
|
let start = core
|
||||||
&core
|
.layers
|
||||||
.layers
|
.geometry
|
||||||
.geometry
|
.of_curve(b.curve())
|
||||||
.of_curve(b.curve())
|
.unwrap()
|
||||||
.unwrap()
|
.local_on(face.surface())
|
||||||
.local_on(face.surface())
|
.unwrap()
|
||||||
.unwrap()
|
.path
|
||||||
.path,
|
.point_from_path_coords(
|
||||||
);
|
core.layers
|
||||||
let end = core.layers.geometry.of_half_edge(&d).start_position(
|
.geometry
|
||||||
&core
|
.of_vertex(b.start_vertex())
|
||||||
.layers
|
.unwrap()
|
||||||
.geometry
|
.local_on(b.curve())
|
||||||
.of_curve(d.curve())
|
.unwrap()
|
||||||
.unwrap()
|
.position,
|
||||||
.local_on(face.surface())
|
);
|
||||||
.unwrap()
|
let end = core
|
||||||
.path,
|
.layers
|
||||||
);
|
.geometry
|
||||||
|
.of_curve(d.curve())
|
||||||
|
.unwrap()
|
||||||
|
.local_on(face.surface())
|
||||||
|
.unwrap()
|
||||||
|
.path
|
||||||
|
.point_from_path_coords(
|
||||||
|
core.layers
|
||||||
|
.geometry
|
||||||
|
.of_vertex(d.start_vertex())
|
||||||
|
.unwrap()
|
||||||
|
.local_on(d.curve())
|
||||||
|
.unwrap()
|
||||||
|
.position,
|
||||||
|
);
|
||||||
|
|
||||||
let (half_edge, boundary) = HalfEdge::line_segment(
|
let (half_edge, boundary) = HalfEdge::line_segment(
|
||||||
[start, end],
|
[start, end],
|
||||||
|
Loading…
Reference in New Issue
Block a user