Typedefs | |
typedef std::pair< libMesh::Real, libMesh::Real > | FunctionNode |
typedef std::vector< FunctionNode > | FunctionNodeList |
Functions | |
libMesh::Real | perpendicularDistance (const FunctionNode &point, const FunctionNode &begin, const FunctionNode &end) |
compute the perpendicular distance of a point P from a line defined by begin and end points. More... | |
FunctionNodeList | douglasPeucker (const FunctionNodeList &, libMesh::Real epsilon) |
Generate a pruned function node list using the Ramer-Douglas-Peucker algorithm. More... | |
Real | sqr (Real a) |
Real | square (Real a) |
void | douglasPeuckerRecurse (const FunctionNodeList &list, const Real epsilon, std::vector< bool > &keep, std::size_t begin, std::size_t end) |
FunctionNodeList | douglasPeucker (const FunctionNodeList &list, const Real epsilon) |
typedef std::pair<libMesh::Real, libMesh::Real> PointReduction::FunctionNode |
Definition at line 18 of file PointReduction.h.
typedef std::vector<FunctionNode> PointReduction::FunctionNodeList |
Definition at line 19 of file PointReduction.h.
FunctionNodeList PointReduction::douglasPeucker | ( | const FunctionNodeList & | , |
libMesh::Real | epsilon | ||
) |
Generate a pruned function node list using the Ramer-Douglas-Peucker algorithm.
list | An ordered (by x) list of (x,y) points defining a pointwise defined function. |
epsilon | The Ramer-Douglas-Peucker tolerance parameter for coarsening. |
Referenced by CoarsenedPiecewiseLinear::buildCoarsenedGrid().
FunctionNodeList PointReduction::douglasPeucker | ( | const FunctionNodeList & | list, |
const Real | epsilon | ||
) |
filter result
Definition at line 90 of file PointReduction.C.
void PointReduction::douglasPeuckerRecurse | ( | const FunctionNodeList & | list, |
const Real | epsilon, | ||
std::vector< bool > & | keep, | ||
std::size_t | begin, | ||
std::size_t | end | ||
) |
Definition at line 53 of file PointReduction.C.
Referenced by douglasPeucker().
Real PointReduction::perpendicularDistance | ( | const FunctionNode & | point, |
const FunctionNode & | begin, | ||
const FunctionNode & | end | ||
) |
compute the perpendicular distance of a point P from a line defined by begin and end points.
point | The (x,y) point P |
begin | The first (x,y) point defining the line to compute the distance to |
end | The second (x,y) point defining the line to compute the distance to |
Definition at line 34 of file PointReduction.C.
Referenced by douglasPeuckerRecurse().
Definition at line 21 of file PointReduction.C.
Definition at line 28 of file PointReduction.C.
Referenced by perpendicularDistance().