diff --git a/src/model_physics.rs b/src/model_physics.rs index 279faef..3a797c0 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -518,17 +518,15 @@ impl MeshQuery for MinkowskiM match vert_id{ MinkowskiVert::VertVert(v0,v1)=>{ let mut edges=Vec::new(); - let v0e=self.mesh0.vert_edges(v0); let v1f=self.mesh1.vert_faces(v1); - for &directed_edge_id in v0e.iter(){ + for &directed_edge_id in self.mesh0.vert_edges(v0).iter(){ let n=self.mesh0.directed_edge_n(directed_edge_id); if v1f.iter().any(|&face_id|n.dot(self.mesh1.face_nd(face_id).0)