OGS
MeshEnums.h File Reference

Detailed Description

Definition of mesh-related Enumerations.

Author
Karsten Rink
Date
2012-05-02

Definition in file MeshEnums.h.

#include <string>
#include <vector>
Include dependency graph for MeshEnums.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  MeshLib
 

Enumerations

enum class  MeshLib::MeshElemType {
  MeshLib::INVALID = 0 , MeshLib::POINT = 1 , MeshLib::LINE = 3 , MeshLib::QUAD = 9 ,
  MeshLib::HEXAHEDRON = 12 , MeshLib::TRIANGLE = 5 , MeshLib::TETRAHEDRON = 10 , MeshLib::PRISM = 16 ,
  MeshLib::PYRAMID = 14
}
 Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum. More...
 
enum class  MeshLib::CellType {
  MeshLib::INVALID = 0 , MeshLib::POINT1 = 1 , MeshLib::LINE2 = 2 , MeshLib::LINE3 = 3 ,
  MeshLib::TRI3 = 4 , MeshLib::TRI6 = 5 , MeshLib::QUAD4 = 6 , MeshLib::QUAD8 = 7 ,
  MeshLib::QUAD9 = 8 , MeshLib::TET4 = 9 , MeshLib::TET10 = 10 , MeshLib::HEX8 = 11 ,
  MeshLib::HEX20 = 12 , MeshLib::HEX27 = 13 , MeshLib::PRISM6 = 14 , MeshLib::PRISM15 = 15 ,
  MeshLib::PRISM18 = 16 , MeshLib::PYRAMID5 = 17 , MeshLib::PYRAMID13 = 18 , MeshLib::enum_length
}
 Types of mesh elements supported by OpenGeoSys. More...
 
enum class  MeshLib::MeshQualityType {
  MeshLib::INVALID = 0 , MeshLib::ELEMENTSIZE , MeshLib::SIZEDIFFERENCE , MeshLib::EDGERATIO ,
  MeshLib::EQUIANGLESKEW , MeshLib::RADIUSEDGERATIO
}
 Describes a mesh quality metric. More...
 
enum class  MeshLib::UseIntensityAs { MeshLib::ELEVATION , MeshLib::MATERIALS , MeshLib::DATAVECTOR , MeshLib::NONE }
 Selection of possible interpretations for intensities. More...
 

Functions

std::string MeshLib::MeshElemType2String (const MeshElemType t)
 Given a MeshElemType this returns the appropriate string.
 
std::string MeshLib::MeshElemType2StringShort (const MeshElemType t)
 Given a MeshElemType this returns the appropriate string with a short name.
 
MeshElemType MeshLib::String2MeshElemType (const std::string &s)
 Given a string of the shortened name of the element type, this returns the corresponding MeshElemType.
 
std::vector< MeshElemTypeMeshLib::getMeshElemTypes ()
 Returns a vector of all mesh element types.
 
std::vector< std::string > MeshLib::getMeshElemTypeStringsShort ()
 Returns a vector of strings of mesh element types.
 
std::string MeshLib::CellType2String (const CellType t)
 Given a MeshElemType this returns the appropriate string.
 
std::string MeshLib::MeshQualityType2String (const MeshQualityType t)
 
MeshLib::MeshQualityType MeshLib::String2MeshQualityType (std::string const &s)