Update name of variable

This commit is contained in:
Hanno Braun 2025-01-15 20:30:37 +01:00
parent 39b427b2aa
commit aa11d0f350

View File

@ -13,13 +13,13 @@ pub struct Geometry {
impl Geometry { impl Geometry {
pub fn new(device: &wgpu::Device, operation: &dyn Operation) -> Self { pub fn new(device: &wgpu::Device, operation: &dyn Operation) -> Self {
let mut mesh_triangles = TriMesh::new(); let mut tri_mesh = TriMesh::new();
operation.triangles(&mut mesh_triangles); operation.triangles(&mut tri_mesh);
let mut indices = Vec::new(); let mut indices = Vec::new();
let mut vertices = Vec::new(); let mut vertices = Vec::new();
for triangle in &mesh_triangles.triangles { for triangle in &tri_mesh.triangles {
let triangle = triangle.points.each_ref().map(|point| { let triangle = triangle.points.each_ref().map(|point| {
Vec3::from( Vec3::from(
point.coords.components.map(|coord| coord.value() as f32), point.coords.components.map(|coord| coord.value() as f32),