MOAB: Mesh Oriented datABase  (version 5.4.1)
MBMesquite::GlobalPatch Class Reference

A PatchSet representing a single global patch. More...

#include <GlobalPatch.hpp>

+ Inheritance diagram for MBMesquite::GlobalPatch:
+ Collaboration diagram for MBMesquite::GlobalPatch:

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.

Detailed Description

A PatchSet representing a single global patch.

Definition at line 41 of file GlobalPatch.hpp.


Constructor & Destructor Documentation

Definition at line 45 of file GlobalPatch.cpp.

{}

Member Function Documentation

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.

Parameters:
patch_handleone of the handles returned by get_patch_handles()
elem_handles_outthe list of elements in the mesh
free_vertices_outthe 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;
}

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