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

This class creates a mesh from the level set with all grid points with a level set value <= 0.5. These grid points are shifted in space towards the direction of their normal vector by grid delta * LS value. Grid delta and the origin grid point are saved for each point. This allows for a simple setup of disks for ray tracing. More...

#include <lsToDiskMesh.hpp>

Public Types

using TranslatorType = std::unordered_map<unsigned long, unsigned long>
 

Public Member Functions

 ToDiskMesh ()
 
 ToDiskMesh (SmartPointer< Mesh< N > > passedMesh, T passedMaxValue=0.5)
 
 ToDiskMesh (SmartPointer< Domain< T, D > > passedLevelSet, SmartPointer< Mesh< N > > passedMesh, T passedMaxValue=0.5)
 
 ToDiskMesh (SmartPointer< Domain< T, D > > passedLevelSet, SmartPointer< Mesh< N > > passedMesh, SmartPointer< TranslatorType > passedTranslator, T passedMaxValue=0.5)
 
void setLevelSet (SmartPointer< Domain< T, D > > passedLevelSet)
 
void insertNextLevelSet (SmartPointer< Domain< T, D > > passedLevelSet)
 Pushes the passed level set to the back of the list of level sets.
 
void setMesh (SmartPointer< Mesh< N > > passedMesh)
 
void setTranslator (SmartPointer< TranslatorType > passedTranslator)
 
void setMaterialMap (SmartPointer< MaterialMap > passedMaterialMap)
 
void setMaxValue (const T passedMaxValue)
 
void apply ()
 

Detailed Description

template<class T, int D, class N = T>
class viennals::ToDiskMesh< T, D, N >

This class creates a mesh from the level set with all grid points with a level set value <= 0.5. These grid points are shifted in space towards the direction of their normal vector by grid delta * LS value. Grid delta and the origin grid point are saved for each point. This allows for a simple setup of disks for ray tracing.

Member Typedef Documentation

◆ TranslatorType

template<class T , int D, class N = T>
using viennals::ToDiskMesh< T, D, N >::TranslatorType = std::unordered_map<unsigned long, unsigned long>

Constructor & Destructor Documentation

◆ ToDiskMesh() [1/4]

template<class T , int D, class N = T>
viennals::ToDiskMesh< T, D, N >::ToDiskMesh ( )
inline

◆ ToDiskMesh() [2/4]

template<class T , int D, class N = T>
viennals::ToDiskMesh< T, D, N >::ToDiskMesh ( SmartPointer< Mesh< N > > passedMesh,
T passedMaxValue = 0.5 )
inline

◆ ToDiskMesh() [3/4]

template<class T , int D, class N = T>
viennals::ToDiskMesh< T, D, N >::ToDiskMesh ( SmartPointer< Domain< T, D > > passedLevelSet,
SmartPointer< Mesh< N > > passedMesh,
T passedMaxValue = 0.5 )
inline

◆ ToDiskMesh() [4/4]

template<class T , int D, class N = T>
viennals::ToDiskMesh< T, D, N >::ToDiskMesh ( SmartPointer< Domain< T, D > > passedLevelSet,
SmartPointer< Mesh< N > > passedMesh,
SmartPointer< TranslatorType > passedTranslator,
T passedMaxValue = 0.5 )
inline

Member Function Documentation

◆ apply()

template<class T , int D, class N = T>
void viennals::ToDiskMesh< T, D, N >::apply ( )
inline

◆ insertNextLevelSet()

template<class T , int D, class N = T>
void viennals::ToDiskMesh< T, D, N >::insertNextLevelSet ( SmartPointer< Domain< T, D > > passedLevelSet)
inline

Pushes the passed level set to the back of the list of level sets.

◆ setLevelSet()

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

◆ setMaterialMap()

template<class T , int D, class N = T>
void viennals::ToDiskMesh< T, D, N >::setMaterialMap ( SmartPointer< MaterialMap > passedMaterialMap)
inline

◆ setMaxValue()

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

◆ setMesh()

template<class T , int D, class N = T>
void viennals::ToDiskMesh< T, D, N >::setMesh ( SmartPointer< Mesh< N > > passedMesh)
inline

◆ setTranslator()

template<class T , int D, class N = T>
void viennals::ToDiskMesh< T, D, N >::setTranslator ( SmartPointer< TranslatorType > passedTranslator)
inline

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