MOAB: Mesh Oriented datABase  (version 5.4.1)
DummyRefMesh Class Reference
+ Inheritance diagram for DummyRefMesh:
+ Collaboration diagram for DummyRefMesh:

Public Member Functions

 DummyRefMesh (const Vector3D *coords, int num_verts)
void get_reference_vertex_coordinates (const Mesh::VertexHandle *handles, const size_t num_vertices, Vector3D *coords, MsqError &err)

Private Attributes

std::vector< Vector3DmCoords

Detailed Description

Definition at line 1190 of file TargetCalculatorTest.cpp.


Constructor & Destructor Documentation

DummyRefMesh::DummyRefMesh ( const Vector3D coords,
int  num_verts 
) [inline]

Definition at line 1195 of file TargetCalculatorTest.cpp.

: mCoords( coords, coords + num_verts ) {}

Member Function Documentation

void DummyRefMesh::get_reference_vertex_coordinates ( const Mesh::VertexHandle handles,
const size_t  num_vertices,
Vector3D coords,
MsqError err 
) [inline, virtual]

Implements MBMesquite::ReferenceMeshInterface.

Definition at line 1197 of file TargetCalculatorTest.cpp.

References MBMesquite::MsqError::INVALID_ARG, and MSQ_SETERR.

    {
        const size_t* indices = reinterpret_cast< const size_t* >( handles );
        for( size_t i = 0; i < num_vertices; ++i )
        {
            if( i >= mCoords.size() )
            {
                MSQ_SETERR( err )( MsqError::INVALID_ARG );
                return;
            }
            coords[i] = mCoords[indices[i]];
        }
    }

Member Data Documentation

std::vector< Vector3D > DummyRefMesh::mCoords [private]

Definition at line 1192 of file TargetCalculatorTest.cpp.

List of all members.


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