mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-09 04:18:28 +00:00
Prepare for follow-on change
This commit is contained in:
parent
ace80850de
commit
e32bd5d649
@ -43,11 +43,14 @@ pub fn triangulate(vertices: &[Handle<Vertex>], surface: &Plane) -> TriMesh {
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
let triangles = triangulation.inner_faces().map(|triangle| {
|
||||
let points =
|
||||
triangle.vertices().map(|vertex| vertex.data().point_vertex);
|
||||
Triangle { points }
|
||||
});
|
||||
let triangles = triangulation
|
||||
.inner_faces()
|
||||
.map(|triangle| {
|
||||
let points =
|
||||
triangle.vertices().map(|vertex| vertex.data().point_vertex);
|
||||
Triangle { points }
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let mut mesh = TriMesh::new();
|
||||
mesh.triangles.extend(triangles);
|
||||
|
Loading…
Reference in New Issue
Block a user