Problemcore
Gouge detection and avoidance
Also called gouge avoidance, interference checking in machining.
Detect and remove places where the tool cuts into the design surface, by local curvature checks and global tests against the rest of the part.
A gouge is a place where the cutting part of a tool removes material that belongs to the finished part. Gouge detection asks, for a given toolpath, where the tool cuts into the design surface and how deep. Gouge avoidance changes the path so that it does not. A gouge is local when the tool cuts into the surface near the point it is meant to touch, which happens on a concave surface whose radius of curvature is smaller than the tool radius. It is global when the tool hits some other part of the surface, such as a wall next to the point. A local test at each contact point, from the curvature of the surface, finds the first kind but misses the second. A global test needs the distance from the tool to all of the part. This is a check on cutter location data in mechanical manufacturing: it is not the interference or overlap check of chip layout. When the shank, the holder or the spindle hits the part, the event is called a collision, and the same tests apply to those bodies.
In plain words
A milling tool is meant to touch the finished surface of a part at one point at a time and remove everything above it. If the tool is too big for a hollow in the surface, its sides dig into the surface around that point. If a wall stands next to the point, the side of the tool can cut into the wall. In both cases the part is damaged, and the damage cannot be undone.
The check takes the planned tool positions and the shape of the part, and reports each position where the tool goes inside the part. A quick check compares the tool radius with how sharply the surface curves at the contact point. It finds the first kind of damage. The second kind needs a check of the tool against the whole part.
Definition
Input.
- A part , a closed regular solid, given by its boundary surface : parametric patches or a triangle mesh with triangles.
- A tool: a solid of revolution about its axis, for example a ball end mill of radius , a flat end mill, or a torus (bull-nose) cutter. is the tool placed with reference point and axis .
- A toolpath: CL points , , with straight moves between consecutive ones (or a finer interpolation of the axis on a five-axis machine).
- A tolerance .
Output (detection). For each position, or each move, whether the tool cuts into the part, and the depth. The tool at gouges when
and the depth is the largest distance from a point of to the boundary . A move gouges when the swept volume of the tool over it meets . A gouge is reported when its depth exceeds .
Output (avoidance). A new toolpath with no gouge deeper than , as close as possible to the given one: for example each lifted along by the least amount, or a change of the axis on a five-axis machine, or a smaller tool for some regions.
Local and global. Let the position be built from a cutter contact (CC) point with unit normal pointing out of , so that the tool touches at . The gouge is local if the tool meets at points arbitrarily close to , and global otherwise.
Local criterion for a ball end mill. Let the ball of radius touch at from outside, with center . Measure the normal curvature of at in each unit tangent direction with the sign that makes it positive where bends toward the ball, that is, where the part is concave. Let be the largest of them, the larger principal curvature with this sign.
- If , the ball gouges at , locally.
- If , the ball meets near only at .
- If , the second-order terms do not decide.
Proof. Put at the origin with along the axis. Near the part is for small, with for unit , by the definition of normal curvature. The lower half of the ball is . So . If for some , this is positive for small , and the points with are inside the ball and inside the part, at distance from . If for every , then by compactness of the circle of directions for some and small , so near the ball is above the part except at .
The criterion is the reason a CL surface built as the offset surface of at distance folds over itself at concave regions with radius of curvature below . It says nothing about the rest of the part.
Variants
- Tool shape. A ball end mill gives the criterion above. A flat or torus cutter touches with an edge or a torus, and the local test compares the curvature of the surface with the curvature of the tool profile in each direction. These depend on the tilt of the axis.
- Three-axis and five-axis. On a three-axis machine the axis is fixed, and avoidance can always lift the tool. On a five-axis machine the axis also changes, and avoidance can tilt it, which brings in the accessibility of the point and collisions of the holder.
- Positions or moves. A check at the CL points alone misses gouges between them. A check of the moves uses the swept volume of the tool, which for a ball and a straight move is a capsule.
- Gouge and excess. Verification also reports the opposite error, material left above the design surface. See NC verification.
Examples
A local gouge. Take a part in the plane of the profile (extend it along the third axis): the surface is a cylindrical groove for , with flat lands for , and the part lies below. The groove has radius of curvature , concave, so at the bottom .
A ball of radius touching at has center and lower boundary . Since , the criterion predicts a gouge. The vertical depth, surface minus ball:
| surface | ball bottom | depth | |
|---|---|---|---|
| 1 | 0.1010 | 0.0839 | 0.0171 |
| 2 | 0.4174 | 0.3431 | 0.0743 |
| 3 | 1.0000 | 0.8038 | 0.1962 |
The ball also cuts the lands, up to where its bottom reaches . The deepest point measured along the normal is the edge of the groove, at distance from the center, so the penetration there is .
With instead, , and the ball with center stays above the groove by , and at , and its bottom at is , above the lands. No gouge.
A global gouge. Let the part be a floor with a wall that rises to . A ball of radius touching the floor at has center . The floor is flat, , so the local test passes. But the ball reaches at height , two units into the wall. Only a test against the whole part finds this.
Known algorithms
- Curvature test. At each CC point, compare with (or the analogous test for other tools). It costs per point given the derivatives of the surface, it is exact by the criterion above when the inequality is strict, and it finds only local gouges.
- Distance test. For a ball end mill, the tool at center gouges the regular solid if and only if the distance from to is less than , and a straight move gouges if and only if the distance from the segment to is less than . Against a triangle mesh this is a point to triangle or segment to triangle distance over all triangles, plus a test of whether is inside , or a bounding volume hierarchy query that skips far triangles, as in collision detection. It finds local and global gouges.
- Inverse tool offset. For three-axis paths the inverse tool offset computes, on a grid, the lowest height of the tool that does not cut into any sample of the part. Positions computed this way avoid gouges at the samples by construction. Between samples the part can still rise above the tool.
- Simulation. NC verification on a z-map or a dexel model cuts the stock with the swept tool and compares the result with the design surface. Jerard et al. (1989) measure the error on short vectors normal to the surface. It finds gouges and excess material, with the precision of the grid.
- Normals and passes. Oliver, Wysocki and Goodman (1993) give two methods for three-axis paths: one uses the surface normals and the tool shape to find the deviation of each move, and one looks along a whole pass for gouges where the curvature changes fast, in concave and convex regions.
What is proved: the curvature criterion, and the exactness of the distance test for a ball. What is measured: the speed of hierarchy queries and of simulation, which depends on the part and the path.
Bounds
- One position, ball against a mesh. time by checking every triangle. For rational input the squared distance from a point to a triangle is rational, so the comparison with is exact.
- A whole path. time for moves by the brute force. A hierarchy query can be faster on typical parts, but its worst case is still per move.
- No hardness. Detection is a polynomial distance problem. Avoidance by lifting each three-axis position is also polynomial: for a ball, each triangle forbids an interval of heights on the vertical line of the position, and the tool is free at every height above the largest top of these intervals. Avoidance that also keeps the path short or smooth is a toolpath planning problem.
Reductions
- To distance queries. For a ball end mill, gouge detection is the question "is the distance from a point or a segment to the part less than ". For a general tool it is the question whether two solids overlap, which is collision detection.
- To curvature. Local gouge detection for a ball is a comparison of the principal curvatures of the surface with .
Applications
- Finishing of dies, molds and turbine blades, where the surface is free-form and a gouge scraps an expensive part.
- Choice of the tool: the largest ball radius with no local gouge on a surface is at most the smallest concave radius of curvature, a quick first bound for the tool size.
- Five-axis machining, where the same tests run for each candidate axis direction.
References
- J. H. Oliver, D. A. Wysocki and E. D. Goodman, Gouge detection algorithms for sculptured surface NC generation, Journal of Engineering for Industry 115(1), 1993, 139 to 144, the two methods, one from surface normals and the tool shape for the chordal deviation of a move, one over a whole pass for gouges in regions of high curvature variation
- R. B. Jerard, R. L. Drysdale, K. Hauck, B. Schaudt and J. Magewick, Methods for detecting errors in numerically controlled machining of sculptured surfaces, IEEE Computer Graphics and Applications 9(1), 1989, 26 to 39, the detection of gouges and of material left by simulation of the cut on vectors normal to the surface
- Byoung K. Choi and Robert B. Jerard, Sculptured Surface Machining, Theory and Applications, Kluwer Academic Publishers, 1998, the chapters on the fundamentals of tool-path generation and on gouge and collision
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag PGS3NK Edit this page History Report an error Markdown