OGS
|
Converter for VtkUnstructured Grids to OGS meshes.
Definition at line 39 of file VtkMeshConverter.h.
#include <VtkMeshConverter.h>
Static Public Member Functions | |
static MeshLib::Mesh * | convertUnstructuredGrid (vtkUnstructuredGrid *grid, bool const compute_element_neighbors=false, std::string const &mesh_name="vtkUnstructuredGrid") |
Converts a vtkUnstructuredGrid object to a Mesh. | |
Static Private Member Functions | |
static void | convertScalarArrays (vtkUnstructuredGrid &grid, MeshLib::Mesh &mesh) |
static std::vector< MeshLib::Node * > | createNodeVector (std::vector< double > const &elevation, std::vector< int > &node_idx_map, GeoLib::RasterHeader const &header, bool use_elevation) |
static std::vector< MeshLib::Element * > | createElementVector (std::vector< double > const &pix_val, std::vector< bool > const &pix_vis, std::vector< MeshLib::Node * > const &nodes, std::vector< int > const &node_idx_map, std::size_t const imgHeight, std::size_t const imgWidth, MeshElemType elem_type) |
Creates a mesh element vector based on image data. | |
template<typename T > | |
static void | fillPropertyVector (MeshLib::PropertyVector< T > &prop_vec, std::vector< double > const &pix_val, std::vector< bool > const &pix_vis, const std::size_t &imgHeight, const std::size_t &imgWidth, MeshElemType elem_type) |
Creates a scalar array/mesh property based on pixel values. | |
static void | convertArray (vtkDataArray &array, MeshLib::Properties &properties, MeshLib::MeshItemType type) |
template<typename T > | |
static void | convertTypedArray (vtkDataArray &array, MeshLib::Properties &properties, MeshLib::MeshItemType type) |
|
staticprivate |
Definition at line 275 of file VtkMeshConverter.cpp.
References convertTypedArray(), OGS_FATAL, and WARN().
Referenced by convertScalarArrays().
|
staticprivate |
Definition at line 240 of file VtkMeshConverter.cpp.
References MeshLib::Cell, convertArray(), MeshLib::Mesh::getProperties(), MeshLib::IntegrationPoint, and MeshLib::Node.
Referenced by convertUnstructuredGrid().
|
inlinestaticprivate |
Definition at line 104 of file VtkMeshConverter.h.
References MeshLib::Properties::createNewPropertyVector(), OGS_FATAL, and WARN().
Referenced by convertArray().
|
static |
Converts a vtkUnstructuredGrid object to a Mesh.
Definition at line 65 of file VtkMeshConverter.cpp.
References convertScalarArrays(), MeshLib::detail::createElementWithSameNodeOrder(), ERR(), and MeshLib::Node.
Referenced by VtkVisPipelineView::convertVTKToOGSMesh(), MeshLib::IO::VtuInterface::readVTKFile(), and MeshLib::IO::VtuInterface::readVTUFile().
|
staticprivate |
Creates a mesh element vector based on image data.
|
staticprivate |
|
inlinestaticprivate |
Creates a scalar array/mesh property based on pixel values.
Definition at line 70 of file VtkMeshConverter.h.
References MeshLib::QUAD, and MeshLib::TRIANGLE.