Revision: 40104
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40104
Author:   kjym3
Date:     2011-09-10 22:27:36 +0000 (Sat, 10 Sep 2011)
Log Message:
-----------
Made an attempt to fix the long-standing issue of occasional infinite lines.
This is still not the best solution, but seems to yield much better results.

Modified Paths:
--------------
    
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/StrokeRep.cpp

Modified: 
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/StrokeRep.cpp
===================================================================
--- 
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/StrokeRep.cpp
    2011-09-10 16:53:58 UTC (rev 40103)
+++ 
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/StrokeRep.cpp
    2011-09-10 22:27:36 UTC (rev 40104)
@@ -255,14 +255,6 @@
         _vertices.push_back(new StrokeVertexRep(p-thickness[0]*stripDir));
       ++i;
 
-      if((stripDir+stripDirPrev).norm() <= 1.e-06){
-        // the strip is most likely doing a U-turn, we can't compute the 
average vector.
-        // We just continue and hope it's ok
-        vPrev = v;
-        cerr << "Warning: problem in strip creation (the strip is most likely 
doing a U-turn).\n";
-        continue;
-      }
-      
       // if the angle is obtuse, we simply average the directions to avoid the 
singularity
       stripDir=stripDir+stripDirPrev;
       if ((dirNorm<ZERO) || (dirPrevNorm<ZERO) || (stripDir.norm() < ZERO)) {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to