0022503: [CEA 1072] "Get Non Blocks" does not work on a set of faces

This commit is contained in:
skv 2014-03-06 16:00:24 +04:00
parent 98ef49dbbc
commit a6fe4c1ad0

5
src/GEOM_I/GEOM_IBlocksOperations_i.cc Normal file → Executable file
View File

@ -766,12 +766,15 @@ GEOM::GEOM_Object_ptr GEOM_IBlocksOperations_i::GetNonBlocks
//Get the result //Get the result
Handle(GEOM_Object) aFaces; Handle(GEOM_Object) aFaces;
Handle(GEOM_Object) anObject = GetOperations()->GetNonBlocks(aShape, aFaces); Handle(GEOM_Object) anObject = GetOperations()->GetNonBlocks(aShape, aFaces);
if (!GetOperations()->IsDone() || anObject.IsNull()) if (!GetOperations()->IsDone())
return aGEOMObject._retn(); return aGEOMObject._retn();
if (!aFaces.IsNull()) if (!aFaces.IsNull())
theNonQuads = GetObject(aFaces); theNonQuads = GetObject(aFaces);
if (anObject.IsNull())
return aGEOMObject._retn();
return GetObject(anObject); return GetObject(anObject);
} }