MOAB: Mesh Oriented datABase
(version 5.4.1)
|
A PatchSet representing a decomposition of the mesh into patches containing a single element. More...
#include <ElementPatches.hpp>
Public Member Functions | |
~ElementPatches () | |
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 decomposition of the mesh into patches containing a single element.
This is intended for use in QualityAssessor. It is not usable for optimization.
Definition at line 42 of file ElementPatches.hpp.
Definition at line 37 of file ElementPatches.cpp.
{}
void MBMesquite::ElementPatches::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. This function returns a single element in element_handles_out and returns free_vertices_out as an empty list.
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 44 of file ElementPatches.cpp.
Referenced by MBMesquite::TargetWriter::loop_over_mesh(), and MBMesquite::QualityAssessor::loop_over_mesh_internal().
{ elem_handles_out.clear(); free_vertices_out.clear(); elem_handles_out.push_back( patch_handle ); }
void MBMesquite::ElementPatches::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 39 of file ElementPatches.cpp.
References MBMesquite::Mesh::get_all_elements(), MBMesquite::PatchSet::get_mesh(), and MSQ_CHKERR.
Referenced by MBMesquite::TargetWriter::loop_over_mesh(), and MBMesquite::QualityAssessor::loop_over_mesh_internal().
{ get_mesh()->get_all_elements( patch_handles_out, err );MSQ_CHKERR( err ); }