Debug options, eliminate narrow slices prior to snapping, consider triangle areas in box substitution

This commit is contained in:
Thomas Krijnen
2024-01-20 13:26:54 +01:00
parent 142b15e332
commit c9f320f062
2 changed files with 152 additions and 21 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ def to_tuple(eq):
return tuple(eq)
to_double = lambda n: tuple(to_tuple(n)[i].to_double() for i in range(3))
to_double = lambda n: tuple(v.to_double() for v in to_tuple(n))
def oc_len(tup):
@@ -63,7 +63,7 @@ def negate(sign):
return tup
def neg(tup):
return tuple(-v for v in tup)
return tuple(-v for v in to_tuple(tup))
return neg if sign == -1 else iden