def getCubicPoints(begin, controlPoints, end, numberOfBezierPoints=globalNumberOfBezierPoints):
 bezierPortion = (1.0 / float(numberOfBezierPoints))
 cubicPoints = []
 for bezierIndex in xrange(1, (numberOfBezierPoints + 1)):
  cubicPoints.append(getCubicPoint((bezierPortion * bezierIndex), begin, controlPoints, end))
 return cubicPoints

def getCubicPoints ( begin , controlPoints , end , numberOfBezierPoints = globalNumberOfBezierPoints ) : bezierPortion = ( 1.0 / float ( numberOfBezierPoints ) ) cubicPoints = [ ] for bezierIndex in xrange ( 1 , ( numberOfBezierPoints + 1 ) ) : cubicPoints . append ( getCubicPoint ( ( bezierPortion * bezierIndex ) , begin , controlPoints , end ) ) return cubicPoints
get the cubic points .