From 3a82fd295c08411b70f8cbf7d3b847f0961bbb5a Mon Sep 17 00:00:00 2001 From: Dan Patterson Date: Sun, 10 Sep 2023 18:48:26 -0400 Subject: [PATCH] Add files via upload Fixed a small bug, hopefully didn't introduce any more. At some point this will be replaced with a script that does, clip, erase, symmetrical difference, etc, which is currently being tested --- arcpro_npg/npg/npg/npg_clip_split.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arcpro_npg/npg/npg/npg_clip_split.py b/arcpro_npg/npg/npg/npg_clip_split.py index 62b5726..06ebeb3 100644 --- a/arcpro_npg/npg/npg/npg_clip_split.py +++ b/arcpro_npg/npg/npg/npg_clip_split.py @@ -259,7 +259,7 @@ def _bits_(i0, i1, in_, seen_): p_a = _bits_(j_p, pN, pinside, p_seen) sub.extend(pl_n[p_a]) # sub.append(pl_n[pN]) # commented out 2023-03-19 for E, d0_ - elif i_c == 0 and cnt == len(inCinP) - 2: # last slice + elif i_c == 0 and cnt == len(inCinP) - 1: # last slice was -1 c_a = _bits_(i_p, cN, cinside, c_seen) sub.extend(cl_n[c_a]) sub.append(cl_n[i_c])