|
From: <J.B...@ew...> - 2008-05-15 11:39:01
|
Hi all,
typedef std::vector<Geom::Path> PathVector;
For ease of speech and code reading pleasure :)
I need to do operations (like append, transformation, reverse) on PathVector. Is it desired to put these in 2geom?
Right now I code all these in Inkscape, for example:
void
SPCurve::transform(Geom::Matrix const &m)
{
PathVector new_v;
for(PathVector::const_iterator it = _pathv.begin(); it != _pathv.end(); ++it) {
new_v.push_back( (*it) * m );
}
_pathv = new_v;
}
It would be nice if I could add a pathvector.h or something to 2geom to do these operations.
Is it okay to do that?
Cheers,
Johan
|