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