+ if(anHyp->GetDim() == 3 && !_father->HasShapeToMesh()
+ && event == ADD_ALGO) {
+ //Only NETGEN_3D and GHS3D_3D can be assigned to the Mesh w/o geometryy
+ bool isNetgen3D = (strcmp( "NETGEN_3D", anHyp->GetName()) == 0);
+ bool isGhs3d = (strcmp( "GHS3D_3D", anHyp->GetName()) == 0);
+ if( !isNetgen3D && !isGhs3d)
+ return SMESH_Hypothesis::HYP_BAD_DIM;
+ }
+
+
+