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

Element size (area or volume) More...

#include <SizeMetric.hpp>

+ Inheritance diagram for MBMesquite::SizeMetric:
+ Collaboration diagram for MBMesquite::SizeMetric:

Public Member Functions

virtual MESQUITE_EXPORT ~SizeMetric ()
virtual MESQUITE_EXPORT std::string get_name () const
virtual MESQUITE_EXPORT int get_negate_flag () const
 1 if metric should be minimized, -1 if metric should be maximized.
virtual MESQUITE_EXPORT bool evaluate (PatchData &pd, size_t handle, double &value, MsqError &err)
 Get metric value at a logical location in the patch.

Detailed Description

Element size (area or volume)

This metric is intended primarily for use with QualityAssessor for obtaining a summary of the element sizes in the mesh.

Definition at line 46 of file SizeMetric.hpp.


Constructor & Destructor Documentation

Definition at line 39 of file SizeMetric.cpp.

{}

Member Function Documentation

bool MBMesquite::SizeMetric::evaluate ( PatchData pd,
size_t  handle,
double &  value,
MsqError err 
) [virtual]

Get metric value at a logical location in the patch.

Evaluate the metric at one location in the PatchData.

Parameters:
pdThe patch.
handleThe location in the patch (as passed back from get_evaluations).
valueThe output metric value.

Implements MBMesquite::QualityMetric.

Definition at line 51 of file SizeMetric.cpp.

References MBMesquite::MsqMeshEntity::compute_unsigned_area(), and MBMesquite::PatchData::element_by_index().

{
    value = pd.element_by_index( handle ).compute_unsigned_area( pd, err );
    return true;
}
std::string MBMesquite::SizeMetric::get_name ( ) const [virtual]

Implements MBMesquite::QualityMetric.

Definition at line 41 of file SizeMetric.cpp.

{
    return "Size";
}
int MBMesquite::SizeMetric::get_negate_flag ( ) const [virtual]

1 if metric should be minimized, -1 if metric should be maximized.

Implements MBMesquite::QualityMetric.

Definition at line 46 of file SizeMetric.cpp.

{
    return 1;
}

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