示例#1
0
 private void ProcessDirection()
 {
     _unfoldDirection = new UnfoldDirection(_direction);
     foreach (var triangle in _smartTriangles)
     {
         triangle.UpdateUnfoldDirection(_unfoldDirection);
     }
 }
示例#2
0
 public void UpdateUnfoldDirection(UnfoldDirection direction)
 {
     if (_hasChildren)
     {
         foreach (var child in _children)
         {
             child.UpdateUnfoldDirection(direction);
         }
     }
     else
     {
         //_directionValue = direction.GetCentroidAnimationValue(_targetVertices.GetCentroid());
         _directionValue = direction.GetCentroidRadiusAnimationValue(_targetVertices.GetCentroid());
     }
 }