Prepare for follow-on change

This commit is contained in:
Hanno Braun 2024-11-05 18:11:48 +01:00
parent a0831e6e62
commit 20b69fc757
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ impl Mesh {
self.vertices.push(vertex);
}
pub fn push_triangle(&mut self, triangle: Triangle) {
pub fn triangle(&mut self, triangle: Triangle) {
self.triangles.push(triangle);
}
}

View File

@ -29,7 +29,7 @@ pub fn model() -> anyhow::Result<Mesh> {
[4, 5, 7], // top
[4, 7, 6],
]
.map(|triangle| mesh.push_triangle(triangle));
.map(|triangle| mesh.triangle(triangle));
Ok(mesh)
}