aboutsummaryrefslogtreecommitdiff
path: root/examples2d
diff options
context:
space:
mode:
Diffstat (limited to 'examples2d')
-rw-r--r--examples2d/trimesh2.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples2d/trimesh2.rs b/examples2d/trimesh2.rs
index 3176861..d77d841 100644
--- a/examples2d/trimesh2.rs
+++ b/examples2d/trimesh2.rs
@@ -79,11 +79,7 @@ pub fn init_world(testbed: &mut Testbed) {
transform.get_scale().1 as f32 * 0.2,
);
- let indices: Vec<_> = mesh
- .indices
- .chunks(3)
- .map(|v| Point3::new(v[0], v[1], v[2]))
- .collect();
+ let indices: Vec<_> = mesh.indices.chunks(3).map(|v| [v[0], v[1], v[2]]).collect();
let vertices: Vec<_> = mesh
.vertices
.iter()