Mesh: [skip ci] expose some mesh evaluation functions to Python

This commit is contained in:
wmayer
2021-02-14 12:02:45 +01:00
parent dac937ae35
commit d941c114cb
4 changed files with 82 additions and 2 deletions

View File

@@ -1497,6 +1497,30 @@ void MeshObject::validateIndices()
this->_segments.clear();
}
bool MeshObject::hasInvalidNeighbourhood() const
{
MeshCore::MeshEvalNeighbourhood eval(_kernel);
return !eval.Evaluate();
}
bool MeshObject::hasPointsOutOfRange() const
{
MeshCore::MeshEvalRangePoint eval(_kernel);
return !eval.Evaluate();
}
bool MeshObject::hasFacetsOutOfRange() const
{
MeshCore::MeshEvalRangeFacet eval(_kernel);
return !eval.Evaluate();
}
bool MeshObject::hasCorruptedFacets() const
{
MeshCore::MeshEvalCorruptedFacets eval(_kernel);
return !eval.Evaluate();
}
void MeshObject::validateDeformations(float fMaxAngle, float fEps)
{
unsigned long count = _kernel.CountFacets();