ViennaLS
Loading...
Searching...
No Matches
viennals::Prune< T, D > Class Template Reference

Removes all level set points, which do not have at least one oppositely signed neighbour (Meaning they do not lie directly at the interface). Afterwards the level set will occupy the least memory possible. More...

#include <lsPrune.hpp>

Public Member Functions

 Prune ()
 
 Prune (SmartPointer< Domain< T, D > > passedlsDomain)
 
void setLevelSet (SmartPointer< Domain< T, D > > passedlsDomain)
 
void setUpdatePointData (bool update)
 Set whether to update the point data stored in the LS during this algorithm. Defaults to true.
 
void setRemoveStrayZeros (bool rsz)
 Set whether to remove exact zero values between grid points with the same sign.
 
void apply ()
 removes all grid points, which do not have at least one opposite signed neighbour returns the number of removed points
 

Detailed Description

template<class T, int D>
class viennals::Prune< T, D >

Removes all level set points, which do not have at least one oppositely signed neighbour (Meaning they do not lie directly at the interface). Afterwards the level set will occupy the least memory possible.

Constructor & Destructor Documentation

◆ Prune() [1/2]

template<class T , int D>
viennals::Prune< T, D >::Prune ( )
inline

◆ Prune() [2/2]

template<class T , int D>
viennals::Prune< T, D >::Prune ( SmartPointer< Domain< T, D > > passedlsDomain)
inline

Member Function Documentation

◆ apply()

template<class T , int D>
void viennals::Prune< T, D >::apply ( )
inline

removes all grid points, which do not have at least one opposite signed neighbour returns the number of removed points

◆ setLevelSet()

template<class T , int D>
void viennals::Prune< T, D >::setLevelSet ( SmartPointer< Domain< T, D > > passedlsDomain)
inline

◆ setRemoveStrayZeros()

template<class T , int D>
void viennals::Prune< T, D >::setRemoveStrayZeros ( bool rsz)
inline

Set whether to remove exact zero values between grid points with the same sign.

◆ setUpdatePointData()

template<class T , int D>
void viennals::Prune< T, D >::setUpdatePointData ( bool update)
inline

Set whether to update the point data stored in the LS during this algorithm. Defaults to true.


The documentation for this class was generated from the following file: