Fem: Avoid legacy Netgen meshing if there is no referenced shape - fixes #17814

This commit is contained in:
marioalexis
2024-11-13 09:08:40 -03:00
committed by Chris Hennes
parent be8dfbfc7e
commit 98a15bcc9d

View File

@@ -86,7 +86,11 @@ App::DocumentObjectExecReturn* FemMeshShapeNetgenObject::execute()
Fem::FemMesh newMesh;
Part::Feature* feat = Shape.getValue<Part::Feature*>();
const Part::Feature* feat = Shape.getValue<Part::Feature*>();
if (!feat) {
return App::DocumentObject::StdReturn;
}
TopoDS_Shape shape = feat->Shape.getValue();
NETGENPlugin_Mesher myNetGenMesher(newMesh.getSMesh(), shape, true);