Ejemplo n.º 1
0
 private void ProcessDirection()
 {
     _unfoldDirection = new UnfoldDirection(_direction);
     foreach (var triangle in _smartTriangles)
     {
         triangle.UpdateUnfoldDirection(_unfoldDirection);
     }
 }
Ejemplo n.º 2
0
 //TODO
 public void UpdateUnfoldDirection(UnfoldDirection direction)
 {
     if (_hasChildren)
     {
         foreach (var child in _children)
         {
             child.UpdateUnfoldDirection(direction);
         }
     }
     else
     {
         _radius = direction.GetCentroidRadiusAnimationValue(_targetVertices.GetCentroid());
     }
 }
Ejemplo n.º 3
0
 private void ProcessDirection()
 {
     _unfoldDirection = new UnfoldDirection(_direction);
     if (IsFolding)
     {
         foreach (var triangle in _bindModels)
         {
             triangle.UpdateUnfoldDirection(_unfoldDirection);
         }
     }
     else
     {
         foreach (var triangle in _breakModels)
         {
             triangle.UpdateUnfoldDirection(_unfoldDirection);
         }
     }
 }