Quantity_Color newOCCCol = HYDROData_Tool::toOccColor(newQCurCol);
aCurve->setColorSectionInternal(0, newOCCCol);
- //Handle(AIS_InteractiveObject) anAISObject = aCurve->getAISObject();
- //if (anAISObject)
- // anAISObject->SetColor(newOCCCol);
+ Handle(AIS_InteractiveObject) anAISObject = aCurve->getAISObject();
+ if (anAISObject)
+ {
+ //color points of shape in the same color as edges
+ Handle(Prs3d_PointAspect) anAspect = anAISObject->Attributes()->PointAspect();
+ anAspect->SetColor(newOCCCol);
+ anAISObject->Attributes()->SetPointAspect( anAspect );
+ }
QListWidgetItem* item = myProfileNames->item(theIndex);
QPixmap SPixmap(16, 16);