Esempio n. 1
0
    public void RestoreColor()
    {
        for (int i = 0; i < primObjectList.Count; i++)
        {
            PrimitiveObject po = primObjectList[i];

            po.RestoreColor();
        }
    }
Esempio n. 2
0
 protected void RestoreSelectionAction()
 {
     if (selectionState == SelectionState.Vertex) {
         if (hitPoint != null) {
             hitPoint.SetPointEnabled(false);
         }
     }
     if (selectionState == SelectionState.Face) {
         if (hitPrimitiveObject != null && hitPrimitiveObject.IsSelected == false) {
             hitPrimitiveObject.RestoreColor();
         }
     } else if (selectionState == SelectionState.Object) {
         if (hitPrimitiveObject != null && hitPrimitiveObject.GetCompound().IsSelected == false) {
             hitPrimitiveObject.GetCompound().RestoreColor();
         }
     }
     hitTr = null;
     hitPrimitiveObject = null;
     hitPoint = null;
 }