mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 02:18:28 +00:00
Make name of function more explicit
This commit is contained in:
parent
bebc92258d
commit
e4c5f5aaf3
@ -11,7 +11,7 @@ use spade::Triangulation;
|
||||
use crate::topology::face::Face;
|
||||
|
||||
pub fn triangulate(face: &Face) -> TriMesh {
|
||||
let points = points(face);
|
||||
let points = points_from_half_edges(face);
|
||||
let triangles = triangles(&points);
|
||||
|
||||
let polygon = polygon(&points);
|
||||
@ -40,7 +40,7 @@ pub fn triangulate(face: &Face) -> TriMesh {
|
||||
mesh
|
||||
}
|
||||
|
||||
fn points(face: &Face) -> Vec<TriangulationPoint> {
|
||||
fn points_from_half_edges(face: &Face) -> Vec<TriangulationPoint> {
|
||||
let points_from_half_edges = face.half_edges.iter().map(|half_edge| {
|
||||
let point_global = half_edge.start.point;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user