def sample_path(path, num=10):
 space = numpy.linspace(0.0, 1.0, num, endpoint=True)
 return [path.pointAtPercent(float(p)) for p in space]

def sample_path ( path , num = 10 ) : space = numpy . linspace ( 0.0 , 1.0 , num , endpoint = True ) return [ path . pointAtPercent ( float ( p ) ) for p in space ]
sample num equidistant points from the path .