4
/*** Routines in this group return a path that looks the same, but
5
* include extra knots for certain points of interest. */
7
/*** find_vector_extreme_points
8
* extreme points . dir.
11
std::vector<Geom::Path::PathLocation>
12
find_vector_extreme_points(Geom::Path p, Geom::Point dir);
14
std::vector<Geom::Path::PathLocation>
15
find_inflection_points(Geom::Path p);
16
std::vector<Geom::Path::PathLocation>
17
find_flat_points(Geom::Path p);
19
Geom::Path::PathLocation dim_extreme_points(Geom::Path::PathElem e);
22
std::vector<Geom::Path::PathLocation> find_points(Geom::Path p, F f) {
23
std::vector<Geom::Path::PathLocation> result;
25
for(Geom::Path::const_iterator iter(p.begin()), end(p.end());
26
iter != end; ++iter) {
27
std::vector<Geom::Path::PathLocation> v = f(*iter);
29
result.insert(result.end(), v.begin(), v.end());
37
c-file-style:"stroustrup"
38
c-file-offsets:((innamespace . 0)(substatement-open . 0))
43
vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :