Skip to content

Commit 1d16e1d

Browse files
committed
Closes #2413
1 parent 801bc12 commit 1d16e1d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Core/Algorithms/Legacy/Fields/TransformMesh/ProjectPointsOntoMesh.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,18 @@ bool ProjectPointsOntoMeshAlgo::runImpl(FieldHandle input, FieldHandle object, F
6060
return (false);
6161
}
6262

63-
if (!object)
63+
if (!object || !object->vmesh())
6464
{
6565
error("No mesh to project points onto.");
6666
return (false);
6767
}
6868

69+
if (object->vmesh()->is_empty())
70+
{
71+
error("Object mesh is empty--nothing to project points onto.");
72+
return false;
73+
}
74+
6975
FieldInformation fi(input), fo(input), fobj(object);
7076

7177
// Create the proper output type

0 commit comments

Comments
 (0)