bool SMESH_subMesh::IsEmpty() const
{
if (SMESHDS_SubMesh * subMeshDS = ((SMESH_subMesh*)this)->GetSubMeshDS())
- return (!subMeshDS->GetNodes()->more() && !subMeshDS->GetElements()->more());
+ return (!subMeshDS->NbElements() && !subMeshDS->NbNodes());
return true;
}
int aShapeDim = SMESH_Gen::GetShapeDim(_subShape);
if (aHypDim == 3 && aShapeDim == 3) {
// check case of open shell
- if (_subShape.ShapeType() == TopAbs_SHELL && !_subShape.Closed())
+ //if (_subShape.ShapeType() == TopAbs_SHELL && !_subShape.Closed())
+ if (_subShape.ShapeType() == TopAbs_SHELL && !BRep_Tool::IsClosed(_subShape))
return false;
}
if ( aHypDim <= aShapeDim )
SMESH_subMesh* append): myIt(subIt),myAppend(append)
{
myCur = prepend ? prepend : myIt->more() ? myIt->next() : append;
+ if ( myCur == append ) append = 0;
}
/// Return true if and only if there are other object in this iterator
virtual bool more()