CrvRgnPatch.h
1 /******************************************************************************
2 
3  (c) 2004-2014 Scientific Computation Research Center,
4  Rensselaer Polytechnic Institute. All rights reserved.
5 
6  The LICENSE-SCOREC file included with this distribution describes the terms
7  of the SCOREC Non-Commercial License this program is distributed under.
8 
9 *******************************************************************************/
10 #ifndef CURVEDREGIONPATCH_H
11 #define CURVEDREGIONPATCH_H
12 
13 #include <vector>
14 
15 #include "pumi_mesh.h"
16 
20 
21  public:
24  vec_CrvdRgns_.clear();
25  }
28  vec_CrvdRgns_.clear();
29  }
31  void Add(pMeshEnt region){
32  vec_CrvdRgns_.push_back(region);
33  }
35  int NumRgns(){
36  return vec_CrvdRgns_.size();
37  }
39  double CalcWorstShape();
41  double CalcAverageShape();
43  double CalcMedianShape();
45  void SetPatch(pumi::pPList RgnList);
46 
47  private:
48 
49  std::vector<pMeshEnt> vec_CrvdRgns_;
50 
51 };
52 
53 #endif//CURVEDREGIONPATCH_H
double CalcAverageShape()
get the average shape
Definition: CrvRgnPatch.cc:41
double CalcWorstShape()
get the worst shape
Definition: CrvRgnPatch.cc:56
a set/patch (cavity) of adjacent/connected curved elements
Definition: CrvRgnPatch.h:19
int NumRgns()
size of the patch
Definition: CrvRgnPatch.h:35
~CrvRgnPatch()
destructor
Definition: CrvRgnPatch.h:27
double CalcMedianShape()
get the median shape
Definition: CrvRgnPatch.cc:16
CrvRgnPatch()
constructor
Definition: CrvRgnPatch.h:23
void Add(pMeshEnt region)
add region to the patch
Definition: CrvRgnPatch.h:31
void SetPatch(pumi::pPList RgnList)
set the whole patch at once
Definition: CrvRgnPatch.cc:81