///<summary>Used to set the root invisible.</summary> public void SetGroupVisibility(ToothGroupType groupType,bool setVisible) { for(int i=0;i<Groups.Count;i++) { if(Groups[i].GroupType!=groupType) { continue; } Groups[i].Visible=setVisible; } }
///<summary></summary> public ToothGroup GetGroup(ToothGroupType groupType){ for(int i=0;i<Groups.Count;i++) { if(Groups[i].GroupType==groupType) { return Groups[i]; } } return null; }
///<summary>Used to set enamel, cementum, and BU colors externally.</summary> public void SetGroupColor(ToothGroupType groupType,Color paintColor){ for(int i=0;i<Groups.Count;i++){ if(Groups[i].GroupType!=groupType){ continue; } Groups[i].PaintColor=paintColor; } //if type not found, then no action is taken }