Logo Search packages:      
Sourcecode: inkscape version File versions

std::vector< std::vector< Rect > > Geom::split_bounds ( std::vector< Path > const &  p,
std::vector< std::vector< double > >  splits 

Processes the bounds for a list of paths and a list of splits on them, yielding a list of rects for each. Each entry i corresponds to path i of the input. The number of rects in each entry is guaranteed to be the number of splits for that path, subtracted by one.

Definition at line 520 of file path-intersection.cpp.

References split_bounds().

Referenced by split_bounds().

    std::vector<std::vector<Rect> > ret;
    for(unsigned i = 0; i < p.size(); i++) {
        std::vector<Rect> res;
        for(unsigned j = 1; j < splits[i].size(); j++)
            res.push_back(Rect(p[i].pointAt(splits[i][j-1]), p[i].pointAt(splits[i][j])));
    return ret;

Generated by  Doxygen 1.6.0   Back to index