MOAB: Mesh Oriented datABase
(version 5.4.1)
|
#include <ReferenceMesh.hpp>
Public Member Functions | |
MESQUITE_EXPORT | ReferenceMesh (Mesh *mesh) |
virtual MESQUITE_EXPORT | ~ReferenceMesh () |
virtual MESQUITE_EXPORT void | get_reference_vertex_coordinates (const Mesh::VertexHandle *vertices, size_t num_vertices, Vector3D *coordinates_out, MsqError &err) |
Private Attributes | |
Mesh * | mMesh |
std::vector< MsqVertex > | tmpStorage |
Definition at line 62 of file ReferenceMesh.hpp.
MESQUITE_EXPORT MBMesquite::ReferenceMesh::ReferenceMesh | ( | Mesh * | mesh | ) | [inline] |
Definition at line 65 of file ReferenceMesh.hpp.
MBMesquite::ReferenceMesh::~ReferenceMesh | ( | ) | [virtual] |
Definition at line 43 of file ReferenceMesh.cpp.
{}
void MBMesquite::ReferenceMesh::get_reference_vertex_coordinates | ( | const Mesh::VertexHandle * | vertices, |
size_t | num_vertices, | ||
Vector3D * | coordinates_out, | ||
MsqError & | err | ||
) | [virtual] |
Implements MBMesquite::ReferenceMeshInterface.
Definition at line 45 of file ReferenceMesh.cpp.
References MBMesquite::arrptr(), mMesh, MSQ_ERRRTN, tmpStorage, and MBMesquite::Mesh::vertices_get_coordinates().
Referenced by MBMesquite::RefSizeTargetCalculator::average_edge_length().
{ tmpStorage.resize( num_vertices ); mMesh->vertices_get_coordinates( vertices, arrptr( tmpStorage ), num_vertices, err );MSQ_ERRRTN( err ); std::copy( tmpStorage.begin(), tmpStorage.end(), coordinates_out ); }
Mesh* MBMesquite::ReferenceMesh::mMesh [private] |
Definition at line 74 of file ReferenceMesh.hpp.
Referenced by get_reference_vertex_coordinates().
std::vector< MsqVertex > MBMesquite::ReferenceMesh::tmpStorage [private] |
Definition at line 75 of file ReferenceMesh.hpp.
Referenced by get_reference_vertex_coordinates().