Skip to main content

Module mill_envelope

Module mill_envelope 

Source
Expand description

The lower envelope of a ball-end mill’s moves: the surface it leaves on the stock’s top.

A ball-end mill’s ball of radius r whose centre runs a straight segment sweeps a CAPSULE: every point within r of the segment. Wherever the mill cuts down into the stock’s top and nothing of its shank reaches lower than its ball (an upright mill, or one leaning away from the part as a five-axis finish holds it), what is left of the stock is the stock below the height field h(x, y), the lowest point of any capsule above (x, y): the LOWER ENVELOPE of the capsules. Over each capsule the underside is exact: the lower half of its end balls, or the lower side of the cylinder of radius r about its segment, where that point’s foot on the segment lies within it.

This first piece reads the envelope exactly at a point (BallEnvelope::height, with which capsule and which part of it is lowest there), and integrates the volume under it (BallEnvelope::volume_under, the referee of the solid the construction builds). crate::mill_plan reads which surface is lowest where as a graph of exact boundary curves; the faces are built on it next.

Structs§

BallEnvelope
Ball-end mill moves: balls of radius whose centres run the segments.

Enums§

Underside
The part of a capsule that is lowest at a point: its cylinder, or the ball about one end (false the start, true the end).

Functions§

ball_underside
The underside of the ball of radius about centre over (x, y); None past its rim.