Make variable name more explicit

This commit is contained in:
Hanno Braun 2022-04-12 14:15:04 +02:00
parent 1752550d94
commit 611a30f9bd

View File

@ -17,7 +17,7 @@ pub fn triangulate(
tolerance: Scalar, tolerance: Scalar,
debug_info: &mut DebugInfo, debug_info: &mut DebugInfo,
) -> Mesh<Point<3>> { ) -> Mesh<Point<3>> {
let mut out = Mesh::new(); let mut mesh = Mesh::new();
for face in shape.topology().faces() { for face in shape.topology().faces() {
let face = face.get(); let face = face.get();
@ -64,18 +64,18 @@ pub fn triangulate(
for triangle in triangles { for triangle in triangles {
let points = triangle.map(|point| point.canonical()); let points = triangle.map(|point| point.canonical());
out.push_triangle(points, *color); mesh.push_triangle(points, *color);
} }
} }
Face::Triangles(triangles) => { Face::Triangles(triangles) => {
for triangle in triangles { for triangle in triangles {
out.push_triangle(triangle.inner, triangle.color); mesh.push_triangle(triangle.inner, triangle.color);
} }
} }
} }
} }
out mesh
} }
#[cfg(test)] #[cfg(test)]