Freestyle: remove a bunch of debug prints in the python code, these are confusing
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 26 Sep 2013 16:29:54 +0000 (16:29 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 26 Sep 2013 16:29:54 +0000 (16:29 +0000)
and don't give any meaningful info to users.

release/scripts/freestyle/style_modules/ChainingIterators.py
release/scripts/freestyle/style_modules/PredicatesB1D.py
release/scripts/freestyle/style_modules/PredicatesU1D.py
release/scripts/freestyle/style_modules/parameter_editor.py
release/scripts/freestyle/style_modules/shaders.py

index b908fad0b89adb73d5f8ca756290479a7808ea7a..9be5a0ef03f0a604770138fb8dca2df505fdcb09 100644 (file)
@@ -280,7 +280,7 @@ class pyFillOcclusionsRelativeChainingIterator(ChainingIterator):
        def traverse(self, iter):
                winner = None
                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)
                tvertex = self.next_vertex
                if type(tvertex) is TVertex:
@@ -450,7 +450,7 @@ class pyFillOcclusionsAbsoluteAndRelativeChainingIterator(ChainingIterator):
        def traverse(self, iter):
                winner = None
                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)
                tvertex = self.next_vertex
                if type(tvertex) is TVertex:
@@ -553,7 +553,7 @@ class pyFillQi0AbsoluteAndRelativeChainingIterator(ChainingIterator):
        def traverse(self, iter):
                winner = None
                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)
                tvertex = self.next_vertex
                if type(tvertex) is TVertex:
index 21bba923a2aacb803d687294e880bdb1d6b0b106..604692a999f384cd66e580417f633750ea817a54 100644 (file)
@@ -60,7 +60,7 @@ class pyViewMapGradientNormBP1D(BinaryPredicate1D):
                BinaryPredicate1D.__init__(self)
                self._GetGradient = pyViewMapGradientNormF1D(l, IntegrationType.MEAN)
        def __call__(self, i1,i2):
-               print("compare gradient")
+               #print("compare gradient")
                return (self._GetGradient(i1) > self._GetGradient(i2))
 
 class pyShuffleBP1D(BinaryPredicate1D):
index 30472dc34b0725f6497c1fac908bca72ee0c3087..54f920d05633c634d1f31e9c3df3fa0921d3ffa9 100644 (file)
@@ -92,7 +92,7 @@ class pyLowSteerableViewMapDensityUP1D(UnaryPredicate1D):
        def __call__(self, inter):
                func = GetSteerableViewMapDensityF1D(self._level, self._integration)
                v = func(inter)
-               print(v)
+               #print(v)
                if v < self._threshold:
                        return 1
                return 0
@@ -202,23 +202,23 @@ class pyIsOccludedByUP1D(UnaryPredicate1D):
                vlast = itlast.object
                tvertex = v.viewvertex
                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()
                        while not eit.is_end:
                                ve, incoming = eit.object
                                if ve.id == self._id:
                                        return 1
-                               print("-------", ve.id.first, "-", ve.id.second)
+                               #print("-------", ve.id.first, "-", ve.id.second)
                                eit.increment()
                tvertex = vlast.viewvertex
                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()
                        while not eit.is_end:
                                ve, incoming = eit.object
                                if ve.id == self._id:
                                        return 1
-                               print("-------", ve.id.first, "-", ve.id.second)
+                               #print("-------", ve.id.first, "-", ve.id.second)
                                eit.increment()
                return 0
 
@@ -335,8 +335,8 @@ class pyClosedCurveUP1D(UnaryPredicate1D):
                itlast.decrement()      
                vlast = itlast.object
                v = it.object
-               print(v.id.first, v.id.second)
-               print(vlast.id.first, vlast.id.second)
+               #print(v.id.first, v.id.second)
+               #print(vlast.id.first, vlast.id.second)
                if v.id == vlast.id:
                        return 1
                return 0
index 371019ebe18c5fe81ccf7d264f7b1d67acb44bb3..f8681d946d89c7081e58036ee80623c9396d84c2 100644 (file)
@@ -1093,10 +1093,10 @@ class StrokeCleaner(StrokeShader):
             seg2 = sv3.point - sv2.point
             seg3 = sv4.point - sv3.point
             if seg1.dot(seg2) < 0.0 and seg2.dot(seg3) < 0.0:
-                print(sv2.first_svertex.viewvertex)
-                print(sv2.second_svertex.viewvertex)
-                print(sv3.first_svertex.viewvertex)
-                print(sv3.second_svertex.viewvertex)
+                #print(sv2.first_svertex.viewvertex)
+                #print(sv2.second_svertex.viewvertex)
+                #print(sv3.first_svertex.viewvertex)
+                #print(sv3.second_svertex.viewvertex)
                 p2 = mathutils.Vector(sv2.point)
                 p3 = mathutils.Vector(sv3.point)
                 sv2.point = p3
index c9b022d46dc8911d4fcbf5ac96cd30b47103a0b8..01bfac4d07451f0f2d45c87fa150daa43b7acd62 100644 (file)
@@ -459,7 +459,7 @@ class pyRandomColorShader(StrokeShader):
                c0 = float(random.uniform(15,75))/100.0
                c1 = 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()
                while not it.is_end:
                        it.object.attribute.color = (c0,c1,c2)