Simple check of mesh quality
Will walk through all available mesh metric quantities write ave, min, max, std to dict
with Transaction():
m = Model.Mesh
m_q = {}
mm = 1
ctr = 1
while mm == 1:
try:
m.MeshMetric = ctr
m_nam=m.PropertyByName("MeshMetric").StringValue
m_ave = m.Average
m_min = m.Minimum
m_max = m.Maximum
m_std = m.StandardDeviation
m_q[m_nam] = ([ctr,m_ave,m_min,m_max,m_std]) # mesh metric, counter,
ctr+=1
except:
pass
mm = 0