mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-14 14:58:29 +00:00
Prepare for follow-on change
This commit is contained in:
parent
ec8d9ca59c
commit
37226202b6
@ -10,12 +10,15 @@ pub struct Sketch {
|
|||||||
|
|
||||||
impl Sketch {
|
impl Sketch {
|
||||||
pub fn to_face(&self, surface: Plane) -> Face {
|
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 point = surface.point_from_local(point);
|
||||||
let vertex = Handle::new(Vertex::new(point));
|
Handle::new(Vertex::new(point))
|
||||||
Handle::new(HalfEdge { start: vertex })
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let half_edges = vertices
|
||||||
|
.into_iter()
|
||||||
|
.map(|vertex| Handle::new(HalfEdge { start: vertex }));
|
||||||
|
|
||||||
Face::new(surface, half_edges)
|
Face::new(surface, half_edges)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user