OGS
|
Definition in file VoxelGridFromLayeredMeshes.cpp.
#include "VoxelGridFromLayeredMeshes.h"
#include "MeshLib/Mesh.h"
#include "MeshLib/MeshSearch/MeshElementGrid.h"
#include "MeshToolsLib/MeshEditing/ProjectPointOnMesh.h"
#include "MeshToolsLib/MeshEditing/RemoveMeshComponents.h"
#include "MeshToolsLib/MeshGenerators/MeshGenerator.h"
Go to the source code of this file.
Functions | |
void | adjustExtent (std::pair< MathLib::Point3d, MathLib::Point3d > &extent, MeshLib::Mesh const &mesh) |
std::unique_ptr< MeshLib::Mesh > | generateInitialMesh (std::pair< MathLib::Point3d, MathLib::Point3d > &extent, std::array< double, 3 > const &res) |
MeshLib::Element const * | getProjectedElement (MeshLib::MeshElementGrid const &grid, MathLib::Point3d const &node, double const max_edge) |
void | voteMatId (MathLib::Point3d const &node, MeshLib::MeshElementGrid const &grid, double const max_edge, std::size_t &nullptr_cnt, std::size_t &upper_layer_cnt, std::size_t &lower_layer_cnt) |
void | setMaterialIDs (MeshLib::Mesh &mesh, std::vector< MeshLib::Mesh const * > const &layers, bool const dilate) |
std::vector< std::size_t > | markSpecificElements (MeshLib::Mesh const &mesh, int const mat_id) |
Variables | |
static std::string | mat_name = "MaterialIDs" |
void adjustExtent | ( | std::pair< MathLib::Point3d, MathLib::Point3d > & | extent, |
MeshLib::Mesh const & | mesh ) |
Definition at line 21 of file VoxelGridFromLayeredMeshes.cpp.
References GeoLib::AABB::getMaxPoint(), GeoLib::AABB::getMinPoint(), and MeshLib::Mesh::getNodes().
Referenced by MeshToolsLib::MeshGenerators::VoxelFromLayeredMeshes::createVoxelFromLayeredMesh().
std::unique_ptr< MeshLib::Mesh > generateInitialMesh | ( | std::pair< MathLib::Point3d, MathLib::Point3d > & | extent, |
std::array< double, 3 > const & | res ) |
Definition at line 34 of file VoxelGridFromLayeredMeshes.cpp.
References MeshLib::Cell, MeshToolsLib::MeshGenerator::generateRegularHexMesh(), INFO(), and mat_name.
Referenced by MeshToolsLib::MeshGenerators::VoxelFromLayeredMeshes::createVoxelFromLayeredMesh().
MeshLib::Element const * getProjectedElement | ( | MeshLib::MeshElementGrid const & | grid, |
MathLib::Point3d const & | node, | ||
double const | max_edge ) |
Definition at line 69 of file VoxelGridFromLayeredMeshes.cpp.
References MeshLib::MeshElementGrid::getElementsInVolume(), and MeshToolsLib::ProjectPointOnMesh::getProjectedElement().
Referenced by voteMatId().
std::vector< std::size_t > markSpecificElements | ( | MeshLib::Mesh const & | mesh, |
int const | mat_id ) |
Definition at line 189 of file VoxelGridFromLayeredMeshes.cpp.
References MeshLib::materialIDs().
Referenced by MeshToolsLib::MeshGenerators::VoxelFromLayeredMeshes::createVoxelFromLayeredMesh().
void setMaterialIDs | ( | MeshLib::Mesh & | mesh, |
std::vector< MeshLib::Mesh const * > const & | layers, | ||
bool const | dilate ) |
Definition at line 111 of file VoxelGridFromLayeredMeshes.cpp.
References MeshLib::getCenterOfGravity(), MeshLib::Mesh::getElements(), MeshLib::Mesh::getNumberOfElements(), MeshLib::Mesh::getProperties(), MeshLib::Properties::getPropertyVector(), INFO(), mat_name, and voteMatId().
Referenced by MeshToolsLib::MeshGenerators::VoxelFromLayeredMeshes::createVoxelFromLayeredMesh().
void voteMatId | ( | MathLib::Point3d const & | node, |
MeshLib::MeshElementGrid const & | grid, | ||
double const | max_edge, | ||
std::size_t & | nullptr_cnt, | ||
std::size_t & | upper_layer_cnt, | ||
std::size_t & | lower_layer_cnt ) |
Definition at line 87 of file VoxelGridFromLayeredMeshes.cpp.
References MeshToolsLib::ProjectPointOnMesh::getElevation(), and getProjectedElement().
Referenced by setMaterialIDs().
|
static |
Definition at line 18 of file VoxelGridFromLayeredMeshes.cpp.
Referenced by generateInitialMesh(), and setMaterialIDs().