chiark / gitweb /
Only emit the intersect warning once. After that only report the special lines for...
authordaid <daid303@gmail.com>
Mon, 23 Apr 2012 09:22:08 +0000 (11:22 +0200)
committerdaid <daid303@gmail.com>
Mon, 23 Apr 2012 09:22:08 +0000 (11:22 +0200)
Cura/cura_sf/fabmetheus_utilities/geometry/solids/triangle_mesh.py

index 0cfffdcc51bbbd0961d6240b1ad676dc3b5d598a..3239830577c9f7a30304a8e70a74b030070295cd 100644 (file)
@@ -448,7 +448,8 @@ def getLoopsFromCorrectMesh( edges, faces, vertexes, z ):
                p0 = loop[-1]
                for p1 in loop:
                        if euclidean.isLineIntersectingLoops(loops[idx+1:], p0, p1):
-                               print('Warning, the triangle mesh slice intersects itself in getLoopsFromCorrectMesh in triangle_mesh.')
+                               if not warning:
+                                       print('Warning, the triangle mesh slice intersects itself in getLoopsFromCorrectMesh in triangle_mesh.')
                                print('Model error(intersect): (%f, %f, %f) (%f, %f, %f)' % (p0.real, p0.imag, z, p1.real, p1.imag, z))
                                warning = True
                        p0 = p1