From 9af374ee142565f8544aa555e32b3a6125088373 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 28 Nov 2023 19:19:21 -0800 Subject: [PATCH] finally fix face_edges MinkowskiFace::EdgeEdge case --- src/model_physics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model_physics.rs b/src/model_physics.rs index c366ac7..aaecc06 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -559,9 +559,9 @@ impl MeshQuery for MinkowskiM //could sort this if ordered edges are needed Cow::Owned(vec![ MinkowskiDirectedEdge::VertEdge(e0v[0],e1.as_directed(parity)), - MinkowskiDirectedEdge::EdgeVert(e0.as_directed(parity),e1v[0]), + MinkowskiDirectedEdge::EdgeVert(e0.as_directed(!parity),e1v[0]), MinkowskiDirectedEdge::VertEdge(e0v[1],e1.as_directed(!parity)), - MinkowskiDirectedEdge::EdgeVert(e0.as_directed(!parity),e1v[1]), + MinkowskiDirectedEdge::EdgeVert(e0.as_directed(parity),e1v[1]), ]) }, MinkowskiFace::FaceVert(f0,v1)=>{