Added approximation for hyperbola curves.

This commit is contained in:
Markus Lampert
2018-08-18 15:34:48 -07:00
parent 853ad14a1a
commit 660b9b38d4
2 changed files with 6 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ import PathScripts.PathUtil as PathUtil
import PathScripts.PathUtils as PathUtils
import copy
import math
import traceback
from PathScripts.PathDressupTagPreferences import HoldingTagPreferences
from PathScripts.PathUtils import waiting_effects
@@ -471,6 +472,7 @@ class MapWireToTag:
return commands
except Exception as e:
PathLog.error("Exception during processing tag @(%.2f, %.2f) (%s) - disabling the tag" % (self.tag.x, self.tag.y, e.args[0]))
#traceback.print_exc(e)
self.tag.enabled = False
commands = []
for e in self.edges:

View File

@@ -465,6 +465,8 @@ def removeDuplicateEdges(wire):
unique.append(e)
return Part.Wire(unique)
OddsAndEnds = []
def flipEdge(edge):
'''flipEdge(edge)
Flips given edge around so the new Vertexes[0] was the old Vertexes[-1] and vice versa, without changing the shape.
@@ -507,6 +509,8 @@ def flipEdge(edge):
return Part.Edge(flipped)
global OddsAndEnds
OddsAndEnds.append(edge)
PathLog.warning(translate('PathGeom', "%s not support for flipping") % type(edge.Curve))
def flipWire(wire):