mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-03 17:38:27 +00:00
Simplify
This commit is contained in:
parent
a72690f074
commit
46429d0aa4
@ -10,16 +10,12 @@ pub struct Sketch {
|
||||
|
||||
impl Sketch {
|
||||
pub fn to_face(&self, surface: Plane) -> Face {
|
||||
let half_edges = self
|
||||
.points
|
||||
.iter()
|
||||
.copied()
|
||||
.map(|point| {
|
||||
let point = surface.point_from_local(point);
|
||||
let vertex = Vertex::new(point);
|
||||
Handle::new(vertex)
|
||||
})
|
||||
.map(|vertex| Handle::new(HalfEdge::new(vertex)));
|
||||
let half_edges = self.points.iter().copied().map(|point| {
|
||||
let point = surface.point_from_local(point);
|
||||
let vertex = Vertex::new(point);
|
||||
let vertex = Handle::new(vertex);
|
||||
Handle::new(HalfEdge::new(vertex))
|
||||
});
|
||||
|
||||
Face::new(surface, half_edges)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user