diff options
author | pants <jaron@kent-dobias.com> | 2016-09-09 14:33:56 -0400 |
---|---|---|
committer | pants <jaron@kent-dobias.com> | 2016-09-09 14:33:56 -0400 |
commit | 03de79b8c5ebcc206e3450dfbc701211d9c254b0 (patch) | |
tree | ea1882e66605bbfcf257692c53f45bf1c4d0d2db /src/net_notch.c | |
parent | bf525955316995a56b9fd1e66b9345cdf4ba3561 (diff) | |
download | fuse_networks-03de79b8c5ebcc206e3450dfbc701211d9c254b0.tar.gz fuse_networks-03de79b8c5ebcc206e3450dfbc701211d9c254b0.tar.bz2 fuse_networks-03de79b8c5ebcc206e3450dfbc701211d9c254b0.zip |
more refactoring
Diffstat (limited to 'src/net_notch.c')
-rw-r--r-- | src/net_notch.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/net_notch.c b/src/net_notch.c deleted file mode 100644 index ccbb387..0000000 --- a/src/net_notch.c +++ /dev/null @@ -1,29 +0,0 @@ - -#include "fracture.h" - -void net_notch(net_t *net, double notch_len, cholmod_common *c) { - for (uint_t i = 0; i < net->graph->ne; i++) { - uint_t v1, v2; - double v1x, v1y, v2x, v2y, dy; - bool crosses_center, not_wrapping, correct_length; - - v1 = net->graph->ev[2 * i]; - v2 = net->graph->ev[2 * i + 1]; - - v1x = net->graph->vx[2 * v1]; - v1y = net->graph->vx[2 * v1 + 1]; - v2x = net->graph->vx[2 * v2]; - v2y = net->graph->vx[2 * v2 + 1]; - - dy = v1y - v2y; - - 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 = v1x < notch_len && v2x < notch_len; - - if (crosses_center && not_wrapping && correct_length) { - break_edge(net, i, c); - } - } -} |