CGAL 4.11 - Triangulated Surface Mesh Simplification
|
The concept GetCost
describes the requirements for the policy function object which gets the collapse cost of an edge.
The cost returned is a boost::optional
value (i.e. it can be absent). An absent cost indicates that the edge should not be collapsed. This could be the result of a computational limitation (such as overflow), or can be intentionally returned to prevent the edge from being collapsed.
Operations | |
template<class Profile > | |
boost::optional< typename Profile::FT > | operator() (Profile const &edge_profile, boost::optional< typename Profile::Point > const &placement) const |
Computes and returns the cost of collapsing the edge (represented by its profile), using the calculated placement. More... | |
boost::optional<typename Profile::FT> GetCost::operator() | ( | Profile const & | edge_profile, |
boost::optional< typename Profile::Point > const & | placement | ||
) | const |
Computes and returns the cost of collapsing the edge (represented by its profile), using the calculated placement.
Profile | must be a model of EdgeProfile . |