Prepare for follow-on change

This commit is contained in:
Hanno Braun 2025-04-10 12:02:05 +02:00
parent 41ed3f8b80
commit 5a1a7d502c

View File

@ -91,8 +91,8 @@ fn approximate_half_edge(
end_vertex: end,
}: HalfEdgeWithEndVertex,
) -> Vec<Point<3>> {
let [start, _] = [&half_edge.start, end];
vec![start.point]
let [start, _] = [&half_edge.start, end].map(|vertex| vertex.point);
vec![start]
}
fn polygon_from_half_edges(