From 3c5671310bdada56f5e087b951ac2e4d6086dfbf Mon Sep 17 00:00:00 2001 From: pants Date: Wed, 7 Sep 2016 20:14:05 -0400 Subject: got square network embedded working, torus still broken --- src/net_notch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net_notch.c') diff --git a/src/net_notch.c b/src/net_notch.c index c0ab9d7..48dce1e 100644 --- a/src/net_notch.c +++ b/src/net_notch.c @@ -20,7 +20,8 @@ void net_notch(net_t *net, double notch_len, cholmod_common *c) { crosses_center = (v1y >= 0.5 && v2y <= 0.5) || (v1y <= 0.5 && v2y >= 0.5); not_wrapping = fabs(dy) < 0.5; - correct_length = 0 <= v1x + dx / dy * (v1y - 0.5) <= notch_len; + //correct_length = v1x + dx / dy * (v1y - 0.5) <= notch_len; + correct_length = v1x < notch_len && v2x < notch_len; if (crosses_center && not_wrapping && correct_length) { break_edge(net, i, c); -- cgit v1.2.3-70-g09d2