mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 01:48:28 +00:00
Prepare for follow-on change
This commit is contained in:
parent
a0831e6e62
commit
20b69fc757
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user