Read vertex geometry in SplitFace::split_face

This commit is contained in:
Hanno Braun 2024-06-28 19:36:29 +02:00
parent aec37de69b
commit 8648590fa8

View File

@ -104,25 +104,39 @@ 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
.geometry
.of_vertex(b.start_vertex())
.unwrap()
.local_on(b.curve())
.unwrap()
.position,
); );
let end = core.layers.geometry.of_half_edge(&d).start_position( let end = core
&core
.layers .layers
.geometry .geometry
.of_curve(d.curve()) .of_curve(d.curve())
.unwrap() .unwrap()
.local_on(face.surface()) .local_on(face.surface())
.unwrap() .unwrap()
.path, .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(