a48
2.0.2
|
Uniform Level Adaptive Policy strategy. More...
#include <adaptivepolicies.hh>
Public Member Functions | |
UniformLevelAP (mesh_type *_m=0, const unsigned int &_tl=0) | |
void | set_target_level (const unsigned int &_tl) |
Set target level. | |
unsigned int | get_target_level (void) const |
Get current target level. | |
void | inc_target_level (const unsigned int &_max=std::numeric_limits< unsigned int >::max()) |
Increment target level. | |
void | dec_target_level (const unsigned int &_min=0) |
Decrement target level. | |
Protected Member Functions | |
bool | needs_simplification (vertex_type *v) |
Verify if the vertex needs to be simplified. | |
bool | needs_refinement (halfedge_type *h) |
Verify if the halfedge needs to be refined. |
Uniform Level Adaptive Policy strategy.
This class defines a uniform adaptation using the Container-based adaptive policy (it is in fact a non-adaptative scheme).
Traits | template argument to define mesh traits |
Definition at line 213 of file adaptivepolicies.hh.
a48::UniformLevelAP< Traits >::UniformLevelAP | ( | mesh_type * | _m = 0 , |
const unsigned int & | _tl = 0 |
||
) | [inline] |
Constructor
[in] | _m | Adaptive Mesh to iterate over |
[in] | _tl | Target level to make mesh uniform |
Definition at line 227 of file adaptivepolicies.hh.
void a48::UniformLevelAP< Traits >::set_target_level | ( | const unsigned int & | _tl | ) | [inline] |
Set target level.
[in] | _tl | Target level to set to |
Definition at line 233 of file adaptivepolicies.hh.
unsigned int a48::UniformLevelAP< Traits >::get_target_level | ( | void | ) | const [inline] |
Get current target level.
Definition at line 238 of file adaptivepolicies.hh.
void a48::UniformLevelAP< Traits >::inc_target_level | ( | const unsigned int & | _max = std::numeric_limits<unsigned int>::max() | ) | [inline] |
Increment target level.
[in] | _max | Maximum allowed target level |
Definition at line 243 of file adaptivepolicies.hh.
void a48::UniformLevelAP< Traits >::dec_target_level | ( | const unsigned int & | _min = 0 | ) | [inline] |
Decrement target level.
[in] | _min | Minimum allowed target level |
Definition at line 248 of file adaptivepolicies.hh.
bool a48::UniformLevelAP< Traits >::needs_simplification | ( | vertex_type * | v | ) | [inline, protected, virtual] |
Verify if the vertex needs to be simplified.
[in] | v | Vertex to check if it needs simplification |
Implements a48::ContainerBasedAP< Traits >.
Definition at line 257 of file adaptivepolicies.hh.
bool a48::UniformLevelAP< Traits >::needs_refinement | ( | halfedge_type * | h | ) | [inline, protected, virtual] |
Verify if the halfedge needs to be refined.
[in] | h | Halfedge to check if it needs refinement |
Implements a48::ContainerBasedAP< Traits >.
Definition at line 266 of file adaptivepolicies.hh.