mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-21 09:26:10 +00:00
Update name of variable
This commit is contained in:
parent
39b427b2aa
commit
aa11d0f350
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user