Revision: 2165
http://synfig.svn.sourceforge.net/synfig/?rev=2165&view=rev
Author: dooglus
Date: 2008-11-07 16:58:35 +0000 (Fri, 07 Nov 2008)
Log Message:
-----------
Remove a bunch of unused code.
Modified Paths:
--------------
synfig-core/trunk/src/modules/lyr_std/curvewarp.cpp
Modified: synfig-core/trunk/src/modules/lyr_std/curvewarp.cpp
===================================================================
--- synfig-core/trunk/src/modules/lyr_std/curvewarp.cpp 2008-11-07 16:53:52 UTC
(rev 2164)
+++ synfig-core/trunk/src/modules/lyr_std/curvewarp.cpp 2008-11-07 16:58:35 UTC
(rev 2165)
@@ -102,10 +102,8 @@
bool first = true, last = false;
extreme = false;
- // printf(" loop\n");
for(;next!=end;iter=next++)
{
- // printf(" top\n");
// Setup the curve
etl::hermite<Vector> curve(iter->get_vertex(),
next->get_vertex(), iter->get_tangent2(), next->get_tangent1());
float thisdist(0);
@@ -128,36 +126,24 @@
dist=thisdist;
best_pos = pos;
best_curve = curve;
- // printf("set best_curve\n");
best_len = total_len;
last = true;
- // printf(" *last\n");
}
}
total_len += curve.length();
first = false;
}
- // printf(" after\n");
t = best_pos;
if (fast)
{
len = best_len +
best_curve.find_distance(0,best_curve.find_closest(fast, p));
- // printf("fast set len = %f + %f = %f\n", best_len,
best_curve.find_distance(0,best_curve.find_closest(fast, p)), len);
if (last && t > .99) extreme = true;
}
else
{
len = best_len + best_curve.find_distance(0,best_pos);
- // printf("slow set len = %f + %f = %f\n", best_len,
best_curve.find_distance(0,best_pos), len);
- // printf("find_distance from 0 to %f is %f\n", best_pos,
best_curve.find_distance(0,best_pos));
- // if (last) printf("last\n");
-
- if (last && t > .999)
- {
- extreme = true;
- // printf("extreme end\n");
- }
+ if (last && t == 1) extreme = true;
}
return ret;
}
@@ -169,7 +155,6 @@
{
curve_length_=calculate_distance(bline);
perp_ = (end_point - start_point).perp().norm();
- // printf("curve_length_ = %f\n", curve_length_);
}
CurveWarp::CurveWarp():
@@ -350,9 +335,7 @@
len /= curve_length_;
- // printf("len %6.2f dist %6.2f\n", len, dist);
- return ((start_point + (end_point - start_point) * len) +
- perp_ * dist);
+ return (start_point + (end_point - start_point) * len) + perp_ * dist;
}
float
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl