roughDepth = 0.5 startZ = 0.0 safeZ = 0.5 maxCutDepth = 0.05 toolDiam = 0.5 direction = 'ccw' cutterComp = 'outside' startDwell = 1.0 startCond = 'minX' prog = gcode_cmd.GCodeProg() prog.add(gcode_cmd.GenericStart()) prog.add(gcode_cmd.Space()) prog.add(gcode_cmd.FeedRate(feedrate)) prog.add(gcode_cmd.PathBlendMode(P=0.01)) roughParam = { 'fileName': fileName, 'layers': ['rough_boundary'], 'depth': roughDepth, 'startZ': startZ, 'safeZ': safeZ, 'toolDiam': toolDiam, 'direction': direction, 'cutterComp': cutterComp, 'maxCutDepth': maxCutDepth, 'startDwell': startDwell, 'startCond': startCond, } roughBoundary = cnc_dxf.DxfBoundary(roughParam)
feedrate = 150.0 fileName = 'layout1.dxf' depth = 0.30 startZ = 0.0 safeZ = 0.5 maxCutDepth = 0.08 toolDiam = 0.25 direction = 'ccw' startDwell = 1.0 startCond = 'minX' prog = gcode_cmd.GCodeProg() prog.add(gcode_cmd.GenericStart()) prog.add(gcode_cmd.Space()) prog.add(gcode_cmd.FeedRate(feedrate)) prog.add(gcode_cmd.PathBlendMode(p=0.02, q=0.01)) if True: param = { 'fileName': fileName, 'dxfTypes': ['LINE', 'ARC', 'CIRCLE'], 'layers': ['cable_hole'], 'depth': depth, 'startZ': startZ, 'safeZ': safeZ, 'toolDiam': toolDiam, 'direction': direction, 'cutterComp': 'inside', 'maxCutDepth': maxCutDepth, 'startDwell': startDwell, }