From 686bf5d712e791fd24f1811a8e2d05dc992168bf Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 28 Nov 2023 21:18:34 -0800 Subject: [PATCH] print moooore --- src/model_physics.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/model_physics.rs b/src/model_physics.rs index d711121..78d87f7 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -450,6 +450,20 @@ impl MinkowskiMesh<'_>{ EV::Vert(vert_id)=>FEV::::Vert(vert_id), EV::Edge(edge_id)=>{ println!("fix edge edge_id={:?}",edge_id); + match edge_id{ + MinkowskiEdge::VertEdge(v0,e1)=>{ + println!("v0={}",self.mesh0.vert(v0)); + for face_id1 in self.mesh1.edge_faces(e1).iter(){ + println!("e1 face_n={}",self.mesh1.face_nd(*face_id1).0); + } + }, + MinkowskiEdge::EdgeVert(e0,v1)=>{ + println!("v1={}",self.mesh1.vert(v1)); + for face_id0 in self.mesh0.edge_faces(e0).iter(){ + println!("e0 face_n={}",self.mesh0.face_nd(*face_id0).0); + } + }, + } //cross to face if the boundary is not crossable and we are on the wrong side let edge_n=self.edge_n(edge_id); println!("edge_n={}",edge_n);