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;