X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FNETGENPlugin%2FNETGENPlugin_Mesher.cxx;h=d06bbc277accf2a4d9c2d0c6242309b7a3f65769;hb=9b3c975bfe536e12995c4ead7b301822539338c1;hp=897a2cca3ee4625c67b5655e15dac4149c93b142;hpb=03ed7cce3eb1b8fb03fc38dce70108263763407e;p=plugins%2Fnetgenplugin.git diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index 897a2cc..d06bbc2 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -212,8 +212,10 @@ void NETGENPlugin_Mesher::SetDefaultParameters() * */ //============================================================================= + void SetLocalSize(TopoDS_Shape GeomShape, double LocalSize) { + if ( GeomShape.IsNull() ) return; TopAbs_ShapeEnum GeomType = GeomShape.ShapeType(); if (GeomType == TopAbs_COMPOUND) { for (TopoDS_Iterator it (GeomShape); it.More(); it.Next()) {