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

This algorithm is used to compute the normal vectors for all points with level set values <= 0.5. The result is saved in the lsPointData of the lsDomain and can be retrieved with lsDomain.getPointData().getVectorData("Normals"). Since neighbors in each cartesian direction are necessary for the calculation, the level set width must be >=3. More...

#include <lsCalculateNormalVectors.hpp>

Public Member Functions

 CalculateNormalVectors ()
 
 CalculateNormalVectors (SmartPointer< Domain< T, D > > passedLevelSet, T passedMaxValue=0.5)
 
void setLevelSet (SmartPointer< Domain< T, D > > passedLevelSet)
 
void setMaxValue (const T passedMaxValue)
 
void apply ()
 

Static Public Attributes

static constexpr char normalVectorsLabel [] = "Normals"
 

Detailed Description

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

This algorithm is used to compute the normal vectors for all points with level set values <= 0.5. The result is saved in the lsPointData of the lsDomain and can be retrieved with lsDomain.getPointData().getVectorData("Normals"). Since neighbors in each cartesian direction are necessary for the calculation, the level set width must be >=3.

Constructor & Destructor Documentation

◆ CalculateNormalVectors() [1/2]

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

◆ CalculateNormalVectors() [2/2]

template<class T , int D>
viennals::CalculateNormalVectors< T, D >::CalculateNormalVectors ( SmartPointer< Domain< T, D > > passedLevelSet,
T passedMaxValue = 0.5 )
inline

Member Function Documentation

◆ apply()

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

Calculate Normalvectors

◆ setLevelSet()

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

◆ setMaxValue()

template<class T , int D>
void viennals::CalculateNormalVectors< T, D >::setMaxValue ( const T passedMaxValue)
inline

Member Data Documentation

◆ normalVectorsLabel

template<class T , int D>
char viennals::CalculateNormalVectors< T, D >::normalVectorsLabel[] = "Normals"
staticconstexpr

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