Read path from curve geometry in edge approx code

This commit is contained in:
Hanno Braun 2024-06-19 21:39:29 +02:00
parent 8ed9db8675
commit 082dd9f1a9

View File

@ -61,7 +61,10 @@ impl Approx for (&Handle<HalfEdge>, &Handle<Surface>) {
approx.points.into_iter().map(|point| {
let point_surface = geometry
.of_half_edge(half_edge)
.of_curve(half_edge.curve())
.unwrap()
.local_on(surface)
.unwrap()
.path
.point_from_path_coords(point.local_form);