Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2011-09-11 02:27:36 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2011-09-11 02:27:36 +0400
commit6a1190836c2a982dbc3aeb0e052633b7f86ce12b (patch)
tree6c32ef38c1e9ab9804f68f9b21852825b21beed6 /source/blender/freestyle/intern/stroke/StrokeRep.cpp
parent353713afe827610501f0123b44b0054f49bf56ed (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-xsource/blender/freestyle/intern/stroke/StrokeRep.cpp8
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)) {