Fem: Avoid legacy Netgen meshing if there is no referenced shape - fixes #17814
This commit is contained in:
committed by
Chris Hennes
parent
be8dfbfc7e
commit
98a15bcc9d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user