#include <ModelAPI_AttributeReference.h>
#include <ModelAPI_AttributeSelection.h>
#include <ModelAPI_AttributeSelectionList.h>
+#include <ModelAPI_AttributeRefList.h>
+
#include <GeomValidators_Tools.h>
continue;
TopoDS_Shape aShape = aGeomShape->impl<TopoDS_Shape>();
// change deviation coefficient to provide more precise circle
- //aDrawer->SetDeviationCoefficient(ModuleBase_Tools::defaultDeviationCoefficient());
+ ModuleBase_Tools::setDefaultDeviationCoefficient(aShape, aDrawer);
StdPrs_WFDeflectionShape::Add(thePresentation, aShape, aDrawer);
}
}
addValue(aResult, aShape, myFeature, theObjectShapes);
}
}
+ if (anAttrType == ModelAPI_AttributeRefList::typeId()) {
+ std::shared_ptr<ModelAPI_AttributeRefList> aCurSelList =
+ std::dynamic_pointer_cast<ModelAPI_AttributeRefList>(anAttribute);
+ for (int i = 0; i < aCurSelList->size(); i++) {
+ GeomShapePtr aShape;
+ addValue(aCurSelList->object(i), aShape, myFeature, theObjectShapes);
+ }
+ }
else {
ObjectPtr anObject;
GeomShapePtr aShape;
std::string anAttrType = theAttribute->attributeType();
return anAttrType == ModelAPI_AttributeSelectionList::typeId() ||
+ anAttrType == ModelAPI_AttributeRefList::typeId() ||
anAttrType == ModelAPI_AttributeRefAttr::typeId() ||
anAttrType == ModelAPI_AttributeSelection::typeId() ||
anAttrType == ModelAPI_AttributeReference::typeId();