mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-08 20:08:30 +00:00
Prepare for follow-on change
This commit is contained in:
parent
0df0d129b2
commit
27f3dc5b51
@ -41,9 +41,7 @@ pub fn triangulate(face: &Face) -> TriMesh {
|
||||
}
|
||||
|
||||
fn points(face: &Face) -> Vec<TriangulationPoint> {
|
||||
face.half_edges
|
||||
.iter()
|
||||
.map(|half_edge| {
|
||||
let points_from_half_edges = face.half_edges.iter().map(|half_edge| {
|
||||
// Here, we project a 3D point (from the vertex) into the face's
|
||||
// surface, creating a 2D point. Through the surface, this 2D
|
||||
// point has a position in 3D space.
|
||||
@ -68,8 +66,9 @@ fn points(face: &Face) -> Vec<TriangulationPoint> {
|
||||
point_surface,
|
||||
point_vertex: half_edge.start.point,
|
||||
}
|
||||
})
|
||||
.collect()
|
||||
});
|
||||
|
||||
points_from_half_edges.collect()
|
||||
}
|
||||
|
||||
fn triangles(points: &[TriangulationPoint]) -> Vec<[TriangulationPoint; 3]> {
|
||||
|
Loading…
Reference in New Issue
Block a user