Skip to main content

Module mill_program

Module mill_program 

Source
Expand description

What a flat-bottomed upright end mill removes from the level it is moved at: the plane region its circle covers as its axis runs a program of level moves (straight lines and arcs about upright axes), extruded from that level up through the workpiece’s top.

The region is the union of the discs of the cutter’s radius about every point of the moves. Its boundary lies on exact curves of three kinds: each straight move’s two offset lines, each arc move’s two offset arcs (about the arc’s own centre), and the circle about every move’s ends. Those carriers are made once each (coincident ones merged), cut where they cross or touch one another (in closed form: lines and circles), and a piece is kept where the region lies on exactly one side of it (two probes along it, read by the exact distance to the moves). The kept pieces chain into loops: counter-clockwise outer loops and clockwise holes, each hole in the smallest outer loop holding it. Each outer loop with its holes is one prism, its walls planes and cylinders, its ends planes: no boolean and no fitted curve.

One call makes every depth band’s prism at once only when the caller asks for one band: the moves given are at one level; a program at several depths is several calls (a deeper move covers a shallower one over the same ground, so the caller passes the deepest).

Enums§

MillMove
A level move of the cutter’s axis, in the plane of the level (x, y).

Constants§

MILL_REGION_REFUSAL
The prefix of every refusal of this module.

Functions§

flat_mill_region_prisms
The region an upright flat-bottomed cutter of radius covers as its axis runs moves (all at one level), extruded from bottom to top: one prism for each connected part of the region (its holes through it). The moves’ order does not matter.