#include <TDataStd_ReferenceArray.hxx>
#include <TDataStd_ExtStringList.hxx>
#include <TDataStd_Integer.hxx>
+#include <TDataStd_UAttribute.hxx>
+
/// type of the selection, integer keeps the Selector_Type value
static const Standard_GUID kSEL_TYPE("db174d59-c2e3-4a90-955e-55544df090d6");
if (aContainer->select(theContext, theValue))
return aContainer;
delete aContainer;
- return false;
+ return NULL;
}
+
Selector_Intersect* anIntersect = new Selector_Intersect;
SET_ALGO_FLAGS(anIntersect);
bool aGoodIntersector = anIntersect->select(theContext, theValue);
}
if (!theUseNeighbors) {
delete anIntersect;
- return false;
+ return NULL;
}
// searching by neighbors
Selector_FilterByNeighbors* aNBs = new Selector_FilterByNeighbors;
}
if (!theUseNeighbors) {
delete aModify;
- return false;
+ return NULL;
}
// searching by neighbors
Selector_FilterByNeighbors* aNBs = new Selector_FilterByNeighbors;
void Selector_Algo::storeType(const Selector_Type theType)
{
+ myLab.ForgetAllAttributes(true);
TDataStd_Integer::Set(myLab, kSEL_TYPE, (int)(theType));
+ if (myGeometricalNaming)
+ TDataStd_UAttribute::Set(myLab, kGEOMETRICAL_NAMING);
}