+ // a compound is processed like the edge because the
+ // arc feature uses the compound for presentable AIS
+ if (aShapeType != 6/*an edge*/ && aShapeType != 7/*a vertex*/ && aShapeType != 0/*compound*/)
+ return false;
+
+ // set color from preferences
+ std::vector<int> aColor;
+ std::shared_ptr<ModelAPI_AttributeBoolean> anAuxiliaryAttr =
+ data()->boolean(SketchPlugin_SketchEntity::AUXILIARY_ID());
+ bool isConstruction = anAuxiliaryAttr.get() != NULL && anAuxiliaryAttr->value();
+ if (isConstruction) {
+ aColor = Config_PropManager::color("Visualization", "sketch_auxiliary_color");
+ }
+ else if (isExternal()) {
+ aColor = Config_PropManager::color("Visualization", "sketch_external_color");
+ }
+ else {
+ aColor = Config_PropManager::color("Visualization", "sketch_entity_color");
+ }
+ if (!aColor.empty()) {
+ thePrs->setColor(aColor[0], aColor[1], aColor[2]);
+ for (int i = 0; i < 3 && !isCustomized; i++)
+ isCustomized = aColor[i] != aPrevColor[i];
+ }