// recompute 3D when a locale triangle hypo changes (see PAL7428).
// So we check if mesh is really present
//bool computeOk = (sm->GetComputeState() == COMPUTE_OK);
- bool computeOk = ( ds && ds->GetNodes()->more() );
+ bool computeOk = ( ds && ( ds->GetNodes()->more() || ds->GetElements()->more() ));
if (!computeOk)
{
const TopoDS_Shape & ss = sm->GetSubShape();
break;
}
// compute
- RemoveSubMeshElementsAndNodes();
+ CleanDependants();
+ //RemoveSubMeshElementsAndNodes();
//removeSubMesh( _meshDS, _subShape );
if (!algo->NeedDescretBoundary() && !algo->OnlyUnaryInput())
ret = ApplyToCollection( algo, GetCollection( gen, algo ) );