From: mathog <ma...@ca...> - 2012-09-04 21:36:06
|
On 04-Sep-2012 13:24, Krzysztof Kosiński wrote: > 2012/9/4 mathog <ma...@ca...>: >> I don't see what a 0->1 "t" could be in this situation other than by >> first calculating the length of P and then >> making it a fraction of that length. > > For paths, the 't' parameter goes not from 0 to 1 but from 0 to N, > where N is the number of curves in the path. Ok, that makes sense. Here is a particularly nasty typo, which compiled without even a warning: Geom::Piecewise<Geom::D2<Geom::SBasis> > tmp_pathpw; for (unsigned int i=0; i < pathv.size(); i++) { tmp_pathpw.concat(pathv[i].toPwSb()); } Geom::PathVector out_pathv = Geom::path_from_piecewise(tmp_pathpw, 0,01); print_pathv(out_pathv, tf); but exploded when it ran. Change "0,01" to "0.01" and it works as expected. Thanks, David Mathog ma...@ca... Manager, Sequence Analysis Facility, Biology Division, Caltech |