Area.makePocket() - sliptonic/FreeCAD GitHub Wiki

makePocket(index=-1, mode=0, tool_radius=1.0, extra_offset=0.0, stepover=0.0, from_center=true, angle=45, angle_shift=0.0, shift=0.0): Generate pocket toolpath of the shape.

  • index (-1): the index of the section. -1 means all sections. No effect on planar shape.

  • mode(0): 0=None,1=ZigZag,2=Offset,3=Spiral,4=ZigZagOffset,5=Line,6=Grid,7=Triangle. Selects the pocket toolpath pattern

  • tool_radius(1.0): Tool radius for pocketing

  • extra_offset(0.0): Extra offset for pocketing

  • stepover(0.0): Cutter diameter to step over on each pass. If =0, use ToolRadius.

  • from_center(true): Start pocketing from center

  • angle(45): Pattern angle in degree

  • angle_shift(0.0): Pattern angle shift for each section

  • shift(0.0): Pattern shift distance for each section. The pocket patter will be shifted in othgnal direction by this amount for each section. This gives a 3D pattern mainly for 3D printing. The shift only applies to 'Offset', 'Grid' and 'Triangle'