+ // to store color of higher-level shape
+ std::wstring aName = theResultBody->findShapeName(theGeomShape);
+ if (!aName.empty())
+ {
+ std::vector<int> aColor = theResultBody->findShapeColor(aName);
+ if (!aColor.empty())
+ ModelAPI_Tools::setColor(theResultBody, aColor);
+ }
+