Freestyle: remove a bunch of debug prints in the python code, these are confusing
and don't give any meaningful info to users.
This commit is contained in:
@@ -280,7 +280,7 @@ class pyFillOcclusionsRelativeChainingIterator(ChainingIterator):
|
|||||||
def traverse(self, iter):
|
def traverse(self, iter):
|
||||||
winner = None
|
winner = None
|
||||||
winnerOrientation = 0
|
winnerOrientation = 0
|
||||||
print(self.current_edge.id.first, self.current_edge.id.second)
|
#print(self.current_edge.id.first, self.current_edge.id.second)
|
||||||
it = AdjacencyIterator(iter)
|
it = AdjacencyIterator(iter)
|
||||||
tvertex = self.next_vertex
|
tvertex = self.next_vertex
|
||||||
if type(tvertex) is TVertex:
|
if type(tvertex) is TVertex:
|
||||||
@@ -450,7 +450,7 @@ class pyFillOcclusionsAbsoluteAndRelativeChainingIterator(ChainingIterator):
|
|||||||
def traverse(self, iter):
|
def traverse(self, iter):
|
||||||
winner = None
|
winner = None
|
||||||
winnerOrientation = 0
|
winnerOrientation = 0
|
||||||
print(self.current_edge.id.first, self.current_edge.id.second)
|
#print(self.current_edge.id.first, self.current_edge.id.second)
|
||||||
it = AdjacencyIterator(iter)
|
it = AdjacencyIterator(iter)
|
||||||
tvertex = self.next_vertex
|
tvertex = self.next_vertex
|
||||||
if type(tvertex) is TVertex:
|
if type(tvertex) is TVertex:
|
||||||
@@ -553,7 +553,7 @@ class pyFillQi0AbsoluteAndRelativeChainingIterator(ChainingIterator):
|
|||||||
def traverse(self, iter):
|
def traverse(self, iter):
|
||||||
winner = None
|
winner = None
|
||||||
winnerOrientation = 0
|
winnerOrientation = 0
|
||||||
print(self.current_edge.id.first, self.current_edge.id.second)
|
#print(self.current_edge.id.first, self.current_edge.id.second)
|
||||||
it = AdjacencyIterator(iter)
|
it = AdjacencyIterator(iter)
|
||||||
tvertex = self.next_vertex
|
tvertex = self.next_vertex
|
||||||
if type(tvertex) is TVertex:
|
if type(tvertex) is TVertex:
|
||||||
|
@@ -60,7 +60,7 @@ class pyViewMapGradientNormBP1D(BinaryPredicate1D):
|
|||||||
BinaryPredicate1D.__init__(self)
|
BinaryPredicate1D.__init__(self)
|
||||||
self._GetGradient = pyViewMapGradientNormF1D(l, IntegrationType.MEAN)
|
self._GetGradient = pyViewMapGradientNormF1D(l, IntegrationType.MEAN)
|
||||||
def __call__(self, i1,i2):
|
def __call__(self, i1,i2):
|
||||||
print("compare gradient")
|
#print("compare gradient")
|
||||||
return (self._GetGradient(i1) > self._GetGradient(i2))
|
return (self._GetGradient(i1) > self._GetGradient(i2))
|
||||||
|
|
||||||
class pyShuffleBP1D(BinaryPredicate1D):
|
class pyShuffleBP1D(BinaryPredicate1D):
|
||||||
|
@@ -92,7 +92,7 @@ class pyLowSteerableViewMapDensityUP1D(UnaryPredicate1D):
|
|||||||
def __call__(self, inter):
|
def __call__(self, inter):
|
||||||
func = GetSteerableViewMapDensityF1D(self._level, self._integration)
|
func = GetSteerableViewMapDensityF1D(self._level, self._integration)
|
||||||
v = func(inter)
|
v = func(inter)
|
||||||
print(v)
|
#print(v)
|
||||||
if v < self._threshold:
|
if v < self._threshold:
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
@@ -202,23 +202,23 @@ class pyIsOccludedByUP1D(UnaryPredicate1D):
|
|||||||
vlast = itlast.object
|
vlast = itlast.object
|
||||||
tvertex = v.viewvertex
|
tvertex = v.viewvertex
|
||||||
if type(tvertex) is TVertex:
|
if type(tvertex) is TVertex:
|
||||||
print("TVertex: [ ", tvertex.id.first, ",", tvertex.id.second," ]")
|
#print("TVertex: [ ", tvertex.id.first, ",", tvertex.id.second," ]")
|
||||||
eit = tvertex.edges_begin()
|
eit = tvertex.edges_begin()
|
||||||
while not eit.is_end:
|
while not eit.is_end:
|
||||||
ve, incoming = eit.object
|
ve, incoming = eit.object
|
||||||
if ve.id == self._id:
|
if ve.id == self._id:
|
||||||
return 1
|
return 1
|
||||||
print("-------", ve.id.first, "-", ve.id.second)
|
#print("-------", ve.id.first, "-", ve.id.second)
|
||||||
eit.increment()
|
eit.increment()
|
||||||
tvertex = vlast.viewvertex
|
tvertex = vlast.viewvertex
|
||||||
if type(tvertex) is TVertex:
|
if type(tvertex) is TVertex:
|
||||||
print("TVertex: [ ", tvertex.id.first, ",", tvertex.id.second," ]")
|
#print("TVertex: [ ", tvertex.id.first, ",", tvertex.id.second," ]")
|
||||||
eit = tvertex.edges_begin()
|
eit = tvertex.edges_begin()
|
||||||
while not eit.is_end:
|
while not eit.is_end:
|
||||||
ve, incoming = eit.object
|
ve, incoming = eit.object
|
||||||
if ve.id == self._id:
|
if ve.id == self._id:
|
||||||
return 1
|
return 1
|
||||||
print("-------", ve.id.first, "-", ve.id.second)
|
#print("-------", ve.id.first, "-", ve.id.second)
|
||||||
eit.increment()
|
eit.increment()
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
@@ -335,8 +335,8 @@ class pyClosedCurveUP1D(UnaryPredicate1D):
|
|||||||
itlast.decrement()
|
itlast.decrement()
|
||||||
vlast = itlast.object
|
vlast = itlast.object
|
||||||
v = it.object
|
v = it.object
|
||||||
print(v.id.first, v.id.second)
|
#print(v.id.first, v.id.second)
|
||||||
print(vlast.id.first, vlast.id.second)
|
#print(vlast.id.first, vlast.id.second)
|
||||||
if v.id == vlast.id:
|
if v.id == vlast.id:
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
@@ -1093,10 +1093,10 @@ class StrokeCleaner(StrokeShader):
|
|||||||
seg2 = sv3.point - sv2.point
|
seg2 = sv3.point - sv2.point
|
||||||
seg3 = sv4.point - sv3.point
|
seg3 = sv4.point - sv3.point
|
||||||
if seg1.dot(seg2) < 0.0 and seg2.dot(seg3) < 0.0:
|
if seg1.dot(seg2) < 0.0 and seg2.dot(seg3) < 0.0:
|
||||||
print(sv2.first_svertex.viewvertex)
|
#print(sv2.first_svertex.viewvertex)
|
||||||
print(sv2.second_svertex.viewvertex)
|
#print(sv2.second_svertex.viewvertex)
|
||||||
print(sv3.first_svertex.viewvertex)
|
#print(sv3.first_svertex.viewvertex)
|
||||||
print(sv3.second_svertex.viewvertex)
|
#print(sv3.second_svertex.viewvertex)
|
||||||
p2 = mathutils.Vector(sv2.point)
|
p2 = mathutils.Vector(sv2.point)
|
||||||
p3 = mathutils.Vector(sv3.point)
|
p3 = mathutils.Vector(sv3.point)
|
||||||
sv2.point = p3
|
sv2.point = p3
|
||||||
|
@@ -459,7 +459,7 @@ class pyRandomColorShader(StrokeShader):
|
|||||||
c0 = float(random.uniform(15,75))/100.0
|
c0 = float(random.uniform(15,75))/100.0
|
||||||
c1 = float(random.uniform(15,75))/100.0
|
c1 = float(random.uniform(15,75))/100.0
|
||||||
c2 = float(random.uniform(15,75))/100.0
|
c2 = float(random.uniform(15,75))/100.0
|
||||||
print(c0, c1, c2)
|
#print(c0, c1, c2)
|
||||||
it = stroke.stroke_vertices_begin()
|
it = stroke.stroke_vertices_begin()
|
||||||
while not it.is_end:
|
while not it.is_end:
|
||||||
it.object.attribute.color = (c0,c1,c2)
|
it.object.attribute.color = (c0,c1,c2)
|
||||||
|
Reference in New Issue
Block a user