MOAB: Mesh Oriented datABase
(version 5.4.1)
|
A PatchSet representing a single global patch. More...
#include <GlobalPatch.hpp>
Public Member Functions | |
~GlobalPatch () | |
virtual void | get_patch_handles (std::vector< PatchHandle > &patch_handles_out, MsqError &err) |
Get a list of handles, one for each patch. | |
virtual void | get_patch (PatchHandle patch_handle, std::vector< Mesh::ElementHandle > &elem_handles_out, std::vector< Mesh::VertexHandle > &free_vertices_out, MsqError &err) |
Get the mesh entities in a patch. |
A PatchSet representing a single global patch.
Definition at line 41 of file GlobalPatch.hpp.
Definition at line 45 of file GlobalPatch.cpp.
{}
void MBMesquite::GlobalPatch::get_patch | ( | PatchHandle | patch_handle, |
std::vector< Mesh::ElementHandle > & | elem_handles_out, | ||
std::vector< Mesh::VertexHandle > & | free_vertices_out, | ||
MsqError & | err | ||
) | [virtual] |
Get the mesh entities in a patch.
Given one of the handles returned by get_patch_handles(), return the mesh entities in the corresponding patch.
patch_handle | one of the handles returned by get_patch_handles() |
elem_handles_out | the list of elements in the mesh |
free_vertices_out | the list of vertices interior to the patch |
Implements MBMesquite::PatchSet.
Definition at line 53 of file GlobalPatch.cpp.
References MBMesquite::Mesh::get_all_elements(), MBMesquite::PatchSet::get_mesh(), MBMesquite::GLOBAL_PATCH_HANDLE, and MSQ_ERRRTN.
Referenced by PatchSetTest::test_global_patch().
{ free_vertices_out.clear(); assert( GLOBAL_PATCH_HANDLE == patch_handle ); get_mesh()->get_all_elements( elem_handles_out, err );MSQ_ERRRTN( err ); // get_mesh()->get_all_vertices( free_vertices_out, err ); MSQ_ERRRTN(err); }
void MBMesquite::GlobalPatch::get_patch_handles | ( | std::vector< PatchHandle > & | patch_handles_out, |
MsqError & | err | ||
) | [virtual] |
Get a list of handles, one for each patch.
Implements MBMesquite::PatchSet.
Definition at line 47 of file GlobalPatch.cpp.
References MBMesquite::GLOBAL_PATCH_HANDLE.
Referenced by PatchSetTest::test_global_patch().
{ patch_handles_out.resize( 1 ); patch_handles_out[0] = GLOBAL_PATCH_HANDLE; }