MinkowskiMesh::edge_faces is wrong

This commit is contained in:
Quaternions 2023-11-10 17:47:35 -08:00
parent 816f786763
commit 2acf740898

View File

@ -625,8 +625,10 @@ impl MeshQuery<MinkowskiFace,MinkowskiEdge,MinkowskiVert> for MinkowskiMesh<'_>{
} }
} }
fn edge_faces(&self,edge_id:MinkowskiEdge)->Cow<[MinkowskiFace;2]>{ fn edge_faces(&self,edge_id:MinkowskiEdge)->Cow<[MinkowskiFace;2]>{
//WRONG!!!!!!!!!!!! MORE CASES!!!!!!!!!!!!
match edge_id{ match edge_id{
MinkowskiEdge::VertEdge(v0,e1)=>{ MinkowskiEdge::VertEdge(v0,e1)=>{
//also need to check v0 edges to see if they overtake the face
Cow::Owned(self.mesh1.edge_faces(e1).map(|face_id1|{ Cow::Owned(self.mesh1.edge_faces(e1).map(|face_id1|{
MinkowskiFace::VertFace(v0,face_id1) MinkowskiFace::VertFace(v0,face_id1)
})) }))