ViennaLS
Loading...
Searching...
No Matches
viennals::Slice< T > Class Template Reference

Extract a 2D slice from a 3D level set domain at a fixed position along one axis. The resulting 2D domain contains points where the 3D domain intersects the slice plane and is always inserted into the x-y plane. Use with caution, as the result might be an empty domain if the slice does not intersect any defined points in the source domain. More...

#include <lsSlice.hpp>

Public Member Functions

 Slice ()=default
 
 Slice (SmartPointer< Domain< T, 3 > > passedDomain, SmartPointer< Domain< T, 2 > > passedSliceDomain, int passedSliceDimension=0, T passedSlicePosition=0)
 
 Slice (SmartPointer< Domain< T, 3 > > passedDomain, int passedSliceDimension=0, T passedSlicePosition=0)
 
void setSourceLevelSet (SmartPointer< Domain< T, 3 > > passedDomain)
 
void setSliceLevelSet (SmartPointer< Domain< T, 2 > > passedDomain)
 
void setWritePath (const std::string &path, bool writeSliceSurfaceMesh=false)
 
SmartPointer< Domain< T, 2 > > getSliceLevelSet ()
 
void setSliceDimension (const int dimension)
 
void setSlicePosition (T position)
 
void setReflectX (bool reflect)
 
void apply ()
 

Detailed Description

template<class T>
class viennals::Slice< T >

Extract a 2D slice from a 3D level set domain at a fixed position along one axis. The resulting 2D domain contains points where the 3D domain intersects the slice plane and is always inserted into the x-y plane. Use with caution, as the result might be an empty domain if the slice does not intersect any defined points in the source domain.

Constructor & Destructor Documentation

◆ Slice() [1/3]

template<class T>
viennals::Slice< T >::Slice ( )
default

◆ Slice() [2/3]

template<class T>
viennals::Slice< T >::Slice ( SmartPointer< Domain< T, 3 > > passedDomain,
SmartPointer< Domain< T, 2 > > passedSliceDomain,
int passedSliceDimension = 0,
T passedSlicePosition = 0 )
inline

◆ Slice() [3/3]

template<class T>
viennals::Slice< T >::Slice ( SmartPointer< Domain< T, 3 > > passedDomain,
int passedSliceDimension = 0,
T passedSlicePosition = 0 )
inline

Member Function Documentation

◆ apply()

template<class T>
void viennals::Slice< T >::apply ( )
inline

◆ getSliceLevelSet()

template<class T>
SmartPointer< Domain< T, 2 > > viennals::Slice< T >::getSliceLevelSet ( )
inline

◆ setReflectX()

template<class T>
void viennals::Slice< T >::setReflectX ( bool reflect)
inline

◆ setSliceDimension()

template<class T>
void viennals::Slice< T >::setSliceDimension ( const int dimension)
inline

◆ setSliceLevelSet()

template<class T>
void viennals::Slice< T >::setSliceLevelSet ( SmartPointer< Domain< T, 2 > > passedDomain)
inline

◆ setSlicePosition()

template<class T>
void viennals::Slice< T >::setSlicePosition ( T position)
inline

◆ setSourceLevelSet()

template<class T>
void viennals::Slice< T >::setSourceLevelSet ( SmartPointer< Domain< T, 3 > > passedDomain)
inline

◆ setWritePath()

template<class T>
void viennals::Slice< T >::setWritePath ( const std::string & path,
bool writeSliceSurfaceMesh = false )
inline

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