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

A PatchSet representing a decomposition of the mesh into patches containing a single element. More...

#include <ElementPatches.hpp>

+ Inheritance diagram for MBMesquite::ElementPatches:
+ Collaboration diagram for MBMesquite::ElementPatches:

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.

Detailed Description

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.


Constructor & Destructor Documentation


Member Function Documentation

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.

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 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 );
}

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