*** empty log message ***

This commit is contained in:
David Rose 2001-02-08 23:50:07 +00:00
parent a4995b8ea2
commit 983c9c3062

View File

@ -147,6 +147,9 @@ sample(ParametricCurve *curve, int count, bool even) {
double t, last_t, d;
DataPoint dp;
size_t n = _data.size();
last_t = 0.0;
d = 0.0;
int i;
@ -164,6 +167,14 @@ sample(ParametricCurve *curve, int count, bool even) {
_data.push_back(dp);
last_t = t;
}
if (even) {
double scale = max_t / last_t;
while (n < _data.size()) {
_data[n]._t *= scale;
n++;
}
}
}
////////////////////////////////////////////////////////////////////