This commit is contained in:
Quaternions 2023-11-28 18:41:17 -08:00
parent 1f636116c0
commit b2f781ac14

View File

@ -449,8 +449,10 @@ impl MinkowskiMesh<'_>{
//if a vert is returned, it is the closest point to the infinity point //if a vert is returned, it is the closest point to the infinity point
EV::Vert(vert_id)=>FEV::<MinkowskiFace,MinkowskiDirectedEdge,MinkowskiVert>::Vert(vert_id), EV::Vert(vert_id)=>FEV::<MinkowskiFace,MinkowskiDirectedEdge,MinkowskiVert>::Vert(vert_id),
EV::Edge(edge_id)=>{ EV::Edge(edge_id)=>{
println!("fix edge edge_id={:?}",edge_id);
//cross to face if the boundary is not crossable and we are on the wrong side //cross to face if the boundary is not crossable and we are on the wrong side
let edge_n=self.edge_n(edge_id); let edge_n=self.edge_n(edge_id);
println!("edge_n={}",edge_n);
let vert_sum={ let vert_sum={
let &[v0,v1]=self.edge_verts(edge_id).borrow(); let &[v0,v1]=self.edge_verts(edge_id).borrow();
self.vert(v0)+self.vert(v1) self.vert(v0)+self.vert(v1)