From aec07ef0a0552773d3bd86a0539303521639d3d3 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 12 Feb 2024 20:15:54 -0800 Subject: [PATCH] add todo to fix submeshes --- src/model_physics.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/model_physics.rs b/src/model_physics.rs index 3c15c73..4a0595a 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -284,6 +284,10 @@ impl From<&model::Mesh> for PhysicsMesh{ fn from(mesh:&model::Mesh)->Self{ assert!(mesh.unique_pos.len()!=0,"Mesh cannot have 0 vertices"); let verts=mesh.unique_pos.iter().copied().map(Vert).collect(); + //TODO: fix submeshes + //flat map mesh.physics_groups[$1].groups.polys()[$2] as face_id + //lower face_id points to upper face_id + //the same face is not allowed to be in multiple polygon groups let mut faces=Vec::new(); let mut face_id_from_face=HashMap::new(); let mut mesh_topologies:Vec=mesh.physics_groups.iter().map(|physics_group|{