     
     
     
-    func computePath(start:CGFloat, end:CGFloat, isSelection:Bool) -> UIBezierPath {
-    
-        var path = UIBezierPath()
-        
-        let startPointX = pieChartCenter.x + properties.smallRadius * cos(start)
-        let startPointY = pieChartCenter.y + properties.smallRadius * sin(start)
-        
-        let startPoint = CGPointMake(startPointX, startPointY)
-        
-        var delta = (isSelection) ? properties.expand : 0
-        
-        path.moveToPoint(startPoint)
-        
-        path.addArcWithCenter(pieChartCenter, radius: properties.smallRadius, startAngle: start, endAngle: end, clockwise: false)
-        
-        
-        var helperPath = UIBezierPath()
-        helperPath.moveToPoint(CGPointMake(startPointX, pieChartCenter.y))
-        
-        helperPath.addArcWithCenter(pieChartCenter, radius: (properties.bigRadius + delta), startAngle: start, endAngle: end, clockwise: false)
-        
-        path.addLineToPoint(helperPath.currentPoint)
-        
-        path.addArcWithCenter(pieChartCenter, radius: (properties.bigRadius + delta), startAngle: end, endAngle: start, clockwise: true)
-        
-        path.addLineToPoint(startPoint)
-        
-        
-        
-        return path;
-    }
     
     func computeAnimationPath(start:CGFloat, end:CGFloat) -> UIBezierPath {
         var animationPath = UIBezierPath()


}

struct TrioPath {
    var bezierPath:UIBezierPath
    var animationBezierPath:UIBezierPath
    var selectionBezierPath:UIBezierPath
    
    init(myBezierPath:UIBezierPath, myAnimationBezierPath:UIBezierPath, mySelectionBezierPath:UIBezierPath) {
        self.bezierPath = myBezierPath
        self.animationBezierPath = myAnimationBezierPath
        self.selectionBezierPath = mySelectionBezierPath
    }
}

struct Slice {
    var paths:TrioPath
    var shapeLayer:CAShapeLayer
    var angle:CGFloat
    var label:String

        var mask = CAShapeLayer()
        
        mask.frame = self.frame
        let path = computeDualPath(start, end: end)
        mask.path = path.animationBezierPath.CGPath
        mask.lineWidth = properties.bigRadius - properties.smallRadius
        mask.strokeColor = color.CGColor
