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

Creates a mesh, which consists only of quads/hexas for completely filled grid cells in the level set. Interfaces will not be smooth but stepped. (This can be used to create meshes for finite difference algorithms) More...

#include <lsToVoxelMesh.hpp>

Public Member Functions

 ToVoxelMesh ()
 
 ToVoxelMesh (SmartPointer< Mesh< T > > passedMesh)
 
 ToVoxelMesh (SmartPointer< Domain< T, D > > passedLevelSet, SmartPointer< Mesh< T > > passedMesh)
 
 ToVoxelMesh (const std::vector< SmartPointer< Domain< T, D > > > passedLevelSets, SmartPointer< Mesh< T > > passedMesh)
 
void insertNextLevelSet (SmartPointer< Domain< T, D > > passedLevelSet)
 Push level set to the list of level sets used for output. If more than one are specified, the voxels will be marked using a material number for each level set and output into a single mesh.
 
void setMesh (SmartPointer< Mesh< T > > passedMesh)
 
void setMaterialMap (SmartPointer< MaterialMap > passedMaterialMap)
 
void apply ()
 

Detailed Description

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

Creates a mesh, which consists only of quads/hexas for completely filled grid cells in the level set. Interfaces will not be smooth but stepped. (This can be used to create meshes for finite difference algorithms)

Constructor & Destructor Documentation

◆ ToVoxelMesh() [1/4]

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

◆ ToVoxelMesh() [2/4]

template<class T , int D>
viennals::ToVoxelMesh< T, D >::ToVoxelMesh ( SmartPointer< Mesh< T > > passedMesh)
inline

◆ ToVoxelMesh() [3/4]

template<class T , int D>
viennals::ToVoxelMesh< T, D >::ToVoxelMesh ( SmartPointer< Domain< T, D > > passedLevelSet,
SmartPointer< Mesh< T > > passedMesh )
inline

◆ ToVoxelMesh() [4/4]

template<class T , int D>
viennals::ToVoxelMesh< T, D >::ToVoxelMesh ( const std::vector< SmartPointer< Domain< T, D > > > passedLevelSets,
SmartPointer< Mesh< T > > passedMesh )
inline

Member Function Documentation

◆ apply()

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

◆ insertNextLevelSet()

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

Push level set to the list of level sets used for output. If more than one are specified, the voxels will be marked using a material number for each level set and output into a single mesh.

◆ setMaterialMap()

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

◆ setMesh()

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

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