Prepare for follow-on change

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

View File

@ -13,7 +13,7 @@ impl Mesh {
self.triangles.iter().copied() self.triangles.iter().copied()
} }
pub fn push_vertex(&mut self, vertex: Vertex) { pub fn vertex(&mut self, vertex: Vertex) {
self.vertices.push(vertex); self.vertices.push(vertex);
} }

View File

@ -13,7 +13,7 @@ pub fn model() -> anyhow::Result<Mesh> {
[-0.5, 0.5, 0.5], // 6 [-0.5, 0.5, 0.5], // 6
[0.5, 0.5, 0.5], // 7 [0.5, 0.5, 0.5], // 7
] ]
.map(|vertex| mesh.push_vertex(Vertex { point: vertex })); .map(|vertex| mesh.vertex(Vertex { point: vertex }));
[ [
[0, 4, 6], // left [0, 4, 6], // left