mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-13 02:35:53 +00:00
Make variable name more explicit
This commit is contained in:
parent
1752550d94
commit
611a30f9bd
@ -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)]
|
||||||
|
Loading…
Reference in New Issue
Block a user