37 #include "Vector3D.hpp"
39 using namespace Mesquite;
44 : qualMetric(qm1), scaleFactor(scalar_double)
56 set_name(
"Scalar Multiply Quality Metric");
#define MSQ_ERRZERO(err)
Return zero/NULL on error.
MetricType get_metric_type()
bool evaluate_element(PatchData &pd, MsqMeshEntity *element, double &value, MsqError &err)
int get_negate_flag()
Returns negateFlag.
ScalarMultiplyQualityMetric(QualityMetric *qm1, double scalar_double, MsqError &err)
Used to hold the error state and return it to the application.
Base class for concrete quality metrics.
MsqMeshEntity is the Mesquite object that stores information about the elements in the mesh...
invalid function argument passed
#define MSQ_SETERR(err)
Macro to set error - use err.clear() to clear.
void set_negate_flag(int neg)
QualityMetric * qualMetric
virtual bool evaluate_element(PatchData &, MsqMeshEntity *, double &, MsqError &err)
Evaluate the metric for an element.
virtual bool evaluate_vertex(PatchData &, MsqVertex *, double &, MsqError &err)
Evaluate the metric for a vertex.
void set_metric_type(MetricType t)
This function should be used in the constructor of every concrete quality metric. ...
MsqVertex is the Mesquite object that stores information about the vertices in the mesh...
int get_feasible_constraint()
Returns the feasible flag for this metric.
void set_name(msq_std::string st)
Sets the name of this metric.
bool evaluate_vertex(PatchData &pd, MsqVertex *vertex, double &value, MsqError &err)