added ComputePerFaceQualityDistribution
This commit is contained in:
parent
43592cc07e
commit
05151acef5
|
@ -118,6 +118,16 @@ class Stat
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void ComputePerFaceQualityDistribution( MeshType & m, Distribution<float> &h, bool selectionOnly = false) // V1.0
|
||||||
|
{
|
||||||
|
FaceIterator fi;
|
||||||
|
for(fi = m.face.begin(); fi != m.face.end(); ++fi)
|
||||||
|
if(!(*fi).IsD() && ((!selectionOnly) || (*fi).IsS()) )
|
||||||
|
{
|
||||||
|
assert(!math::IsNAN((*fi).Q()) && "You should never try to compute Histogram with Invalid Floating points numbers (NaN)");
|
||||||
|
h.Add((*fi).Q());
|
||||||
|
}
|
||||||
|
}
|
||||||
static void ComputePerVertexQualityHistogram( MeshType & m, Histogramf &h, bool selectionOnly = false) // V1.0
|
static void ComputePerVertexQualityHistogram( MeshType & m, Histogramf &h, bool selectionOnly = false) // V1.0
|
||||||
{
|
{
|
||||||
VertexIterator vi;
|
VertexIterator vi;
|
||||||
|
|
Loading…
Reference in New Issue