(self,context)
Emit gcode for drawing arc
Emit gcode for drawing arc
Emit gcode for drawing arc
def get_gcode(self,context):
		"Emit gcode for drawing arc"
		start = (self.center[0] - self.radius, self.center[1])
		arc_code = "G3 I%.2f J0 F%.2f" % (self.radius, context.xy_feedrate)

		context.codes.append("(" + str(self) + ")")
		context.go_to_point(start[0],start[1])
		context.start()
		context.codes.append(arc_code)
		context.stop()
		context.codes.append("")
def get_gcode ( self , context ) : start = ( self . center [ 0 ] - self . radius , self . center [ 1 ] ) arc_code = "G3 I%.2f J0 F%.2f" % ( self . radius , context . xy_feedrate ) context . codes . append ( "(" + str ( self ) + ")" ) context . go_to_point ( start [ 0 ] , start [ 1 ] ) context . start ( ) context . codes . append ( arc_code ) context . stop ( ) context . codes . append ( "" )