From e2777852d11c47a408f0c6cdb93bb924ac86dfb6 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 17 Nov 2023 17:54:21 -0800 Subject: [PATCH] probably wrong --- src/face_crawler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/face_crawler.rs b/src/face_crawler.rs index ceeaedf..b3978ff 100644 --- a/src/face_crawler.rs +++ b/src/face_crawler.rs @@ -31,7 +31,7 @@ enum Transition{ //test each edge collision time, ignoring roots with zero or conflicting derivative for &directed_edge_id in mesh.face_edges(face_id).iter(){ let edge_n=mesh.directed_edge_n(directed_edge_id); - let n=edge_n.cross(n); + let n=n.cross(edge_n); let verts=mesh.edge_verts(directed_edge_id.as_undirected()); let d=n.dot(mesh.vert(verts[0]))+n.dot(mesh.vert(verts[1])); //WARNING: d is moved out of the *2 block because of adding two vertices!