OGS
VoxelGridFromMesh.cpp File Reference

Detailed Description

Definition in file VoxelGridFromMesh.cpp.

#include "VoxelGridFromMesh.h"
#include <vtkAbstractArray.h>
#include <vtkCellData.h>
#include <vtkCellLocator.h>
#include <vtkDataArray.h>
#include <vtkDoubleArray.h>
#include <vtkIntArray.h>
#include <vtkLongLongArray.h>
#include <vtkXMLUnstructuredGridReader.h>
#include <cassert>
#include <cmath>
#include "InfoLib/GitInfo.h"
#include "MathLib/Point3d.h"
#include "MeshLib/MeshSearch/ElementSearch.h"
#include "MeshLib/MeshSearch/MeshElementGrid.h"
#include "MeshToolsLib/MeshEditing/RemoveMeshComponents.h"
#include "MeshToolsLib/MeshGenerators/MeshGenerator.h"
Include dependency graph for VoxelGridFromMesh.cpp:

Go to the source code of this file.

Namespaces

namespace  MeshToolsLib
 
namespace  MeshToolsLib::MeshGenerator
 
namespace  MeshToolsLib::MeshGenerator::VoxelGridFromMesh
 

Functions

std::array< std::size_t, 3 > MeshToolsLib::MeshGenerator::VoxelGridFromMesh::getNumberOfVoxelPerDimension (std::array< double, 3 > const &ranges, std::array< double, 3 > const &cellsize)
 
std::vector< int > MeshToolsLib::MeshGenerator::VoxelGridFromMesh::assignCellIds (vtkSmartPointer< vtkUnstructuredGrid > const &mesh, MathLib::Point3d const &min, std::array< std::size_t, 3 > const &dims, std::array< double, 3 > const &cellsize)
 
bool MeshToolsLib::MeshGenerator::VoxelGridFromMesh::removeUnusedGridCells (vtkSmartPointer< vtkUnstructuredGrid > const &mesh, std::unique_ptr< MeshLib::Mesh > &grid)
 
template<typename T , typename VTK_TYPE >
void MeshToolsLib::MeshGenerator::VoxelGridFromMesh::mapArray (MeshLib::Mesh &grid, VTK_TYPE vtk_arr, std::string const &name)
 
template<typename T >
bool MeshToolsLib::MeshGenerator::VoxelGridFromMesh::checkDyncast (MeshLib::Mesh &mesh, vtkSmartPointer< vtkCellData > const cell_data, char const *const name)
 
void MeshToolsLib::MeshGenerator::VoxelGridFromMesh::mapMeshArraysOntoGrid (vtkSmartPointer< vtkUnstructuredGrid > const &mesh, std::unique_ptr< MeshLib::Mesh > const &grid)