MOAB: Mesh Oriented datABase
(version 5.4.1)
|
c2_k = 1 - c1_k More...
#include <RemainingWeight.hpp>
Public Member Functions | |
RemainingWeight (WeightCalculator *primary_weight) | |
virtual | ~RemainingWeight () |
virtual double | get_weight (PatchData &pd, size_t element, Sample sample, MsqError &err) |
Get target metric weight. | |
Private Attributes | |
WeightCalculator * | primaryWeight |
c2_k = 1 - c1_k
Definition at line 41 of file RemainingWeight.hpp.
MBMesquite::RemainingWeight::RemainingWeight | ( | WeightCalculator * | primary_weight | ) | [inline] |
Definition at line 47 of file RemainingWeight.hpp.
: primaryWeight( primary_weight ) {}
MBMesquite::RemainingWeight::~RemainingWeight | ( | ) | [virtual] |
Definition at line 38 of file RemainingWeight.cpp.
{}
double MBMesquite::RemainingWeight::get_weight | ( | PatchData & | pd, |
size_t | element, | ||
Sample | sample, | ||
MsqError & | err | ||
) | [virtual] |
Get target metric weight.
pd | The current PatchData |
element | The index an element within the patch data. |
sample | The sample point in the element. |
Implements MBMesquite::WeightCalculator.
Definition at line 40 of file RemainingWeight.cpp.
References MBMesquite::WeightCalculator::get_weight(), and primaryWeight.
{ return 1.0 - primaryWeight->get_weight( pd, element, sample, err ); }
Definition at line 44 of file RemainingWeight.hpp.
Referenced by get_weight().