def getSegmentPath(loop, path, pointIndex, segmentCenter):
 centerBegin = loop[pointIndex]
 centerEnd = loop[((pointIndex + 1) % len(loop))]
 centerEndMinusBegin = (centerEnd - centerBegin)
 if (abs(centerEndMinusBegin) <= 0.0):
  return [centerBegin]
 if (segmentCenter != None):
  return getRadialPath(centerBegin, centerEnd, path, segmentCenter)
 begin = loop[(((pointIndex + len(loop)) - 1) % len(loop))]
 end = loop[((pointIndex + 2) % len(loop))]
 return getWedgePath(begin, centerBegin, centerEnd, centerEndMinusBegin, end, path)

def getSegmentPath ( loop , path , pointIndex , segmentCenter ) : centerBegin = loop [ pointIndex ] centerEnd = loop [ ( ( pointIndex + 1 ) % len ( loop ) ) ] centerEndMinusBegin = ( centerEnd - centerBegin ) if ( abs ( centerEndMinusBegin ) <= 0.0 ) : return [ centerBegin ] if ( segmentCenter != None ) : return getRadialPath ( centerBegin , centerEnd , path , segmentCenter ) begin = loop [ ( ( ( pointIndex + len ( loop ) ) - 1 ) % len ( loop ) ) ] end = loop [ ( ( pointIndex + 2 ) % len ( loop ) ) ] return getWedgePath ( begin , centerBegin , centerEnd , centerEndMinusBegin , end , path )
get segment path .