OGS
|
Functions | |
std::unique_ptr< MeshLib::Mesh > | createVoxelFromLayeredMesh (std::pair< MathLib::Point3d, MathLib::Point3d > &extent, std::vector< MeshLib::Mesh const * > const &layers, std::array< double, 3 > const cellsize, bool const dilate) |
std::unique_ptr< MeshLib::Mesh > MeshToolsLib::MeshGenerators::VoxelFromLayeredMeshes::createVoxelFromLayeredMesh | ( | std::pair< MathLib::Point3d, MathLib::Point3d > & | extent, |
std::vector< MeshLib::Mesh const * > const & | layers, | ||
std::array< double, 3 > const | cellsize, | ||
bool const | dilate ) |
Constructs a VoxelGrid with a specified resolution of a list of layered meshes.
extent | The axis-aligned boundary-box (AABB) which is initially defined. |
layers | Containing all the meshes that will be used to create the VoxelGrid. |
cellsize | Contains the resolution of the Voxel (i.e. length in x-,y-,z-directions) |
dilate | A flag to set dilate. If dilate is True all Voxels which are not fully covered by the meshes are included in the resulting VoxelGrid. |
Definition at line 206 of file VoxelGridFromLayeredMeshes.cpp.
References adjustExtent(), generateInitialMesh(), markSpecificElements(), MeshToolsLib::removeElements(), and setMaterialIDs().
Referenced by main().