From 4be218defb6861c6484eaa1b8e196bc616cf3f6c Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 17 Nov 2023 14:57:16 -0800 Subject: [PATCH] wrong --- src/face_crawler.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/face_crawler.rs b/src/face_crawler.rs index 012a198..41790a8 100644 --- a/src/face_crawler.rs +++ b/src/face_crawler.rs @@ -22,7 +22,7 @@ enum Transition{ let (n,d)=mesh.face_nd(face_id); for t in zeroes2((n.dot(body.position)-d)*2,n.dot(body.velocity)*2,n.dot(body.acceleration)){ let t=body.time+Time::from(t); - if time{ //WARNING: d is moved out of the *2 block because of adding two vertices! for t in zeroes2(n.dot(body.position)*2-d,n.dot(body.velocity)*2,n.dot(body.acceleration)){ let t=body.time+Time::from(t); - if time::Edge(directed_edge_id.as_undirected()),t); break; @@ -57,7 +57,7 @@ enum Transition{ //WARNING yada yada d *2 for t in zeroes2((n.dot(body.position))*2-d,n.dot(body.velocity)*2,n.dot(body.acceleration)){ let t=body.time+Time::from(t); - if time::Face(edge_face_id),t); break; @@ -72,7 +72,7 @@ enum Transition{ let d=n.dot(mesh.vert(vert_id)); for t in zeroes2((n.dot(body.position)-d)*2,n.dot(body.velocity)*2,n.dot(body.acceleration)){ let t=body.time+Time::from(t); - if time::Vert(vert_id),t); break; @@ -89,7 +89,7 @@ enum Transition{ let d=n.dot(mesh.vert(vert_id)); for t in zeroes2((n.dot(body.position)-d)*2,n.dot(body.velocity)*2,n.dot(body.acceleration)){ let t=body.time+Time::from(t); - if time::Edge(directed_edge_id.as_undirected()),t); break;