[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40104] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/stroke/StrokeRep.cpp: Made an attempt to fix the long-standing issue of occasional infinite lines .

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Sun Sep 11 00:27:37 CEST 2011


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)) {




More information about the Bf-blender-cvs mailing list