def addNestedRingBeginning(distanceFeedRate, loop, z):
 distanceFeedRate.addLine('(<nestedRing>)')
 distanceFeedRate.addLine('(<boundaryPerimeter>)')
 for point in loop:
  pointVector3 = Vector3(point.real, point.imag, z)
  distanceFeedRate.addLine(distanceFeedRate.getBoundaryLine(pointVector3))

def addNestedRingBeginning ( distanceFeedRate , loop , z ) : distanceFeedRate . addLine ( '(<nestedRing>)' ) distanceFeedRate . addLine ( '(<boundaryPerimeter>)' ) for point in loop : pointVector3 = Vector3 ( point . real , point . imag , z ) distanceFeedRate . addLine ( distanceFeedRate . getBoundaryLine ( pointVector3 ) )
add nested ring beginning to gcode output .