Prepare for follow-on change

This commit is contained in:
Hanno Braun 2025-02-24 19:40:19 +01:00
parent ec8d9ca59c
commit 37226202b6

View File

@ -10,12 +10,15 @@ pub struct Sketch {
impl Sketch {
pub fn to_face(&self, surface: Plane) -> Face {
let half_edges = self.points.iter().copied().map(|point| {
let vertices = self.points.iter().copied().map(|point| {
let point = surface.point_from_local(point);
let vertex = Handle::new(Vertex::new(point));
Handle::new(HalfEdge { start: vertex })
Handle::new(Vertex::new(point))
});
let half_edges = vertices
.into_iter()
.map(|vertex| Handle::new(HalfEdge { start: vertex }));
Face::new(surface, half_edges)
}
}