aDoc = std::dynamic_pointer_cast<Model_Document>(aRootDoc);
aSubShapeName = aSubShapeName.substr(aPartEnd + 1);
} else {
- ObjectPtr aFound = owner()->document()->objectByName(ModelAPI_ResultPart::group(), aPartName);
+ ObjectPtr aFound =
+ owner()->document()->objectByName(ModelAPI_ResultPart::group(), aPartName);
if (aFound.get()) { // found such part, so asking it for the name
ResultPartPtr aPart = std::dynamic_pointer_cast<ModelAPI_ResultPart>(aFound);
aDoc = std::dynamic_pointer_cast<Model_Document>(aPart->partDoc());
// check the value shape can be named as it is, or it is needed to construct it from the
// higher level shapes (like a box vertex by faces that form this vertex)
bool aIsFound = TNaming_Tool::HasLabel(myLab, theValue);
- if (aIsFound) { // additional check for selection and delete evolution only: also could not be used
+ if (aIsFound) { // additional check for selection and delete evolution only: also could not use
aIsFound = false;
for(TNaming_SameShapeIterator aShapes(theValue, myLab); aShapes.More(); aShapes.Next())
{
return false;
// searching by neighbours
- std::list<std::pair<TopoDS_Shape, int> > aNBs; /// neighbor sub-shape -> level of neighborhood
+ std::list<std::pair<TopoDS_Shape, int> > aNBs;//neighbor sub-shape -> level of neighborhood
for(int aLevel = 1; true; aLevel++) {
TopTools_MapOfShape aNewNB;
findNeighbors(theContext, theValue, aLevel, aNewNB);
// check which can be named correctly, without by neighbors type
for(TopTools_MapOfShape::Iterator aNBIter(aNewNB); aNBIter.More(); ) {
Selector_Selector aSelector(myLab.FindChild(1));
- if (aSelector.select(theContext, aNBIter.Value(), false)) { // add to the list of good NBs
+ if (aSelector.select(theContext, aNBIter.Value(), false)) {// add to list of good NBs
aNBs.push_back(std::pair<TopoDS_Shape, int>(aNBIter.Value(), aLevel));
}
aNewNB.Remove(aNBIter.Key());
/// Returns true if selection is correct.
bool selectBySubSelector(const TopoDS_Shape theContext, const TopoDS_Shape theValue,
const bool theUseNeighbors = true);
- /// Searches the final shapes presented in all results from bases basing on the modification fields
+ /// Searches the final shapes presented in all results from bases basing on modification fields
void findModificationResult(TopoDS_ListOfShape& theCommon);
};