diff options
author | pants <jaron@kent-dobias.com> | 2016-09-07 15:10:31 -0400 |
---|---|---|
committer | pants <jaron@kent-dobias.com> | 2016-09-07 15:10:31 -0400 |
commit | 00cbec2eab9c12810869def33843fc51cca1d0b1 (patch) | |
tree | 149ea52bb29e089baf215755e90ffcb40f370073 /src | |
parent | 873a9f9bedbbfb07d475e271923a7b86464e515f (diff) | |
download | fuse_networks-00cbec2eab9c12810869def33843fc51cca1d0b1.tar.gz fuse_networks-00cbec2eab9c12810869def33843fc51cca1d0b1.tar.bz2 fuse_networks-00cbec2eab9c12810869def33843fc51cca1d0b1.zip |
made notch formation non-problematic on length zero notches
Diffstat (limited to 'src')
-rw-r--r-- | src/net_notch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_notch.c b/src/net_notch.c index 608d0b5..c0ab9d7 100644 --- a/src/net_notch.c +++ b/src/net_notch.c @@ -20,7 +20,7 @@ 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 = v1x + dx / dy * (v1y - 0.5) <= notch_len; + correct_length = 0 <= v1x + dx / dy * (v1y - 0.5) <= notch_len; if (crosses_center && not_wrapping && correct_length) { break_edge(net, i, c); |