diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-09-11 02:27:36 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-09-11 02:27:36 +0400 |
commit | 6a1190836c2a982dbc3aeb0e052633b7f86ce12b (patch) | |
tree | 6c32ef38c1e9ab9804f68f9b21852825b21beed6 /source/blender/freestyle/intern/stroke/StrokeRep.cpp | |
parent | 353713afe827610501f0123b44b0054f49bf56ed (diff) |
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.
Diffstat (limited to 'source/blender/freestyle/intern/stroke/StrokeRep.cpp')
-rwxr-xr-x | source/blender/freestyle/intern/stroke/StrokeRep.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/freestyle/intern/stroke/StrokeRep.cpp b/source/blender/freestyle/intern/stroke/StrokeRep.cpp index be484eab030..37a5b2ffb4a 100755 --- a/source/blender/freestyle/intern/stroke/StrokeRep.cpp +++ b/source/blender/freestyle/intern/stroke/StrokeRep.cpp @@ -255,14 +255,6 @@ Strip::createStrip (const vector<StrokeVertex*>& iStrokeVertices) _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)) { |