mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 10:28:27 +00:00
Update name of variable
This commit is contained in:
parent
39b427b2aa
commit
aa11d0f350
@ -13,13 +13,13 @@ pub struct Geometry {
|
||||
|
||||
impl Geometry {
|
||||
pub fn new(device: &wgpu::Device, operation: &dyn Operation) -> Self {
|
||||
let mut mesh_triangles = TriMesh::new();
|
||||
operation.triangles(&mut mesh_triangles);
|
||||
let mut tri_mesh = TriMesh::new();
|
||||
operation.triangles(&mut tri_mesh);
|
||||
|
||||
let mut indices = 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| {
|
||||
Vec3::from(
|
||||
point.coords.components.map(|coord| coord.value() as f32),
|
||||
|
Loading…
Reference in New Issue
Block a user