Celeritas
0.5.0-56+6b053cd
|
Recursively simplify, then call the given function on the final surface. More...
#include <RecursiveSimplifier.hh>
Public Member Functions | |
RecursiveSimplifier (F &&func, real_type tol) | |
Construct with tolerance and function to apply. | |
RecursiveSimplifier (F &&func, Tolerance<> tol) | |
Construct with tolerance and function to apply. | |
template<class S > | |
void | operator() (Sense s, S const &surf) |
Apply to a surface with a known type. | |
void | operator() (Sense s, VariantSurface const &surf) |
Apply to a surface with an unknown type. | |
Recursively simplify, then call the given function on the final surface.
The tolerance for this class should be relative.
Example: