MOAB: Mesh Oriented datABase
(version 5.4.1)
|
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< Vector3D > | mCoords |
Definition at line 1190 of file TargetCalculatorTest.cpp.
DummyRefMesh::DummyRefMesh | ( | const Vector3D * | coords, |
int | num_verts | ||
) | [inline] |
Definition at line 1195 of file TargetCalculatorTest.cpp.
: mCoords( coords, coords + num_verts ) {}
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]]; } }
std::vector< Vector3D > DummyRefMesh::mCoords [private] |
Definition at line 1192 of file TargetCalculatorTest.cpp.