Skip to content
Snippets Groups Projects
Commit 6f544bc0 authored by Julien Fausty's avatar Julien Fausty
Browse files

vtkMeanValueCoordinatesInterpolator: guard for empty polygon

parent 36d3cde2
No related branches found
No related tags found
No related merge requests found
......@@ -170,6 +170,12 @@ struct ComputeWeightsForPolygonMesh
{
int nPolyPts = iter.CurrentPolygonSize;
if (nPolyPts == 0)
{
poly = ++iter;
continue;
}
for (int j = 0; j < nPolyPts; j++)
{
u[j] = uVec.data() + 3 * poly[j];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment