MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Public Member Functions | |
TargetError (bool flag_error=true, bool orient=false) | |
bool | get_3D_target (PatchData &, size_t, Sample, MsqMatrix< 3, 3 > &, MsqError &err) |
Get a target matrix. | |
bool | get_2D_target (PatchData &, size_t, Sample, MsqMatrix< 2, 2 > &, MsqError &err) |
Get a target matrix. | |
bool | get_surface_target (PatchData &, size_t, Sample, MsqMatrix< 3, 2 > &, MsqError &err) |
Get a target matrix. | |
virtual bool | have_surface_orient () const |
Use 3x2 W for surface elements if true, 2x2 W if false. | |
Private Attributes | |
bool | flagError |
bool | surfOrient |
Definition at line 161 of file LVQDTargetTest.cpp.
LVQDTargetTest::TargetError::TargetError | ( | bool | flag_error = true , |
bool | orient = false |
||
) | [inline] |
Definition at line 167 of file LVQDTargetTest.cpp.
: flagError( flag_error ), surfOrient( orient ) {}
bool LVQDTargetTest::TargetError::get_2D_target | ( | PatchData & | pd, |
size_t | element, | ||
Sample | sample, | ||
MsqMatrix< 2, 2 > & | W_out, | ||
MsqError & | err | ||
) | [inline, virtual] |
Get a target matrix.
pd | The current PatchData |
element | The index an element within the patch data. |
sample | The sample point in the element. |
W_out | The resulting target matrix. |
Implements MBMesquite::TargetCalculator.
Definition at line 175 of file LVQDTargetTest.cpp.
References MBMesquite::MsqError::INVALID_MESH, and MSQ_SETERR.
{ if( flagError ) MSQ_SETERR( err )( MsqError::INVALID_MESH ); return false; }
bool LVQDTargetTest::TargetError::get_3D_target | ( | PatchData & | pd, |
size_t | element, | ||
Sample | sample, | ||
MsqMatrix< 3, 3 > & | W_out, | ||
MsqError & | err | ||
) | [inline, virtual] |
Get a target matrix.
pd | The current PatchData |
element | The index an element within the patch data. |
sample | The sample point in the element. |
W_out | The resulting target matrix. |
Implements MBMesquite::TargetCalculator.
Definition at line 169 of file LVQDTargetTest.cpp.
References MBMesquite::MsqError::INVALID_MESH, and MSQ_SETERR.
{ if( flagError ) MSQ_SETERR( err )( MsqError::INVALID_MESH ); return false; }
bool LVQDTargetTest::TargetError::get_surface_target | ( | PatchData & | pd, |
size_t | element, | ||
Sample | sample, | ||
MsqMatrix< 3, 2 > & | W_out, | ||
MsqError & | err | ||
) | [inline, virtual] |
Get a target matrix.
pd | The current PatchData |
element | The index an element within the patch data. |
sample | The sample point in the element. |
W_out | The resulting target matrix. |
Implements MBMesquite::TargetCalculator.
Definition at line 181 of file LVQDTargetTest.cpp.
References MBMesquite::MsqError::INVALID_MESH, and MSQ_SETERR.
{ if( flagError ) MSQ_SETERR( err )( MsqError::INVALID_MESH ); return false; }
virtual bool LVQDTargetTest::TargetError::have_surface_orient | ( | ) | const [inline, virtual] |
Use 3x2 W for surface elements if true, 2x2 W if false.
If true, then the targets for surface elements attempt some control of orientation and therefore get_surface_target must be used to get the targets. If false, then the target contains no orientation data and is therefore the same as the corresponding 2D target for surface elements. In this case, get_2D_target should be used.
Implements MBMesquite::TargetCalculator.
Definition at line 187 of file LVQDTargetTest.cpp.
{ return surfOrient; }
bool LVQDTargetTest::TargetError::flagError [private] |
Definition at line 163 of file LVQDTargetTest.cpp.
bool LVQDTargetTest::TargetError::surfOrient [private] |
Definition at line 164 of file LVQDTargetTest.cpp.