mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-12 05:48:27 +00:00
Prepare for follow-on change
This commit is contained in:
parent
1f914948c7
commit
8dbb2e4a95
@ -10,10 +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 vertices = self.points.iter().copied().map(|point| {
|
let vertices = self
|
||||||
let point = surface.point_from_local(point);
|
.points
|
||||||
Handle::new(Vertex::new(point))
|
.iter()
|
||||||
});
|
.copied()
|
||||||
|
.map(|point| {
|
||||||
|
let point = surface.point_from_local(point);
|
||||||
|
Handle::new(Vertex::new(point))
|
||||||
|
})
|
||||||
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
let half_edges = vertices
|
let half_edges = vertices
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
Loading…
Reference in New Issue
Block a user