MOAB: Mesh Oriented datABase  (version 5.3.1)
MBMesquite::ReferenceMesh Class Reference

#include <ReferenceMesh.hpp>

+ Inheritance diagram for MBMesquite::ReferenceMesh:
+ Collaboration diagram for MBMesquite::ReferenceMesh:

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

MeshmMesh
std::vector< MsqVertextmpStorage

Detailed Description

Definition at line 60 of file ReferenceMesh.hpp.


Constructor & Destructor Documentation

Definition at line 63 of file ReferenceMesh.hpp.

: mMesh( mesh ) {}

Definition at line 43 of file ReferenceMesh.cpp.

{}

Member Function Documentation

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 );
}

Member Data Documentation

Definition at line 71 of file ReferenceMesh.hpp.

Referenced by get_reference_vertex_coordinates().

Definition at line 72 of file ReferenceMesh.hpp.

Referenced by get_reference_vertex_coordinates().

List of all members.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines