Added approximation for hyperbola curves.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user