Problemcore
Undercut detection
Also called undercut feature recognition.
Find the regions of a molded or cast part that block its release along the parting direction and so need side cores or a design change.
Undercut detection finds the parts of the surface of a molded or cast part that block the two halves of the mold when they move apart along the parting direction . A point of the surface is an undercut when it is closed in from both sides: the ray from it along and the ray along both pass through the material of the part. Such a point can be formed by neither half, so the mold needs a side core or a lifter there, or the part needs a change. This page defines the undercut region, proves that it is empty exactly when the two-piece mold of Ahn and coauthors works, and gives the methods and bounds. The choice of is the problem of mold parting direction, and the curve where the halves meet is found by parting line generation.
In plain words
A mold opens in two halves, one moving up and one moving down. Each spot on the part must be formed by one of the halves, and that half must be able to pull away from it in a straight line. A spot on the top of a part can be formed by the upper half. A spot under a lip, or inside a hole that goes through the part sideways, is a problem. Above it there is material, so the upper half cannot reach it, and below it there is also material, so the lower half cannot reach it either.
Such spots are undercuts. The task is to find all of them, so that the designer can change the part or add a moving piece to the mold.
Definition
Input. A solid in , the closure of a bounded open set, given as a polyhedron with vertices or as a B-rep, and a parting direction .
Undercut region. For a point on the boundary , let and be the open rays from along and . The point is free along if does not meet the interior , and likewise along . The undercut region is
The definition treats and the same way, so . An undercut feature is a connected group of faces, or parts of faces, in , which one side core can form.
Output. The region , as parts of faces, or the list of faces that meet it, or only the answer to "is empty, up to a set of zero area?".
Lemma (one side is always blocked). Let be in the relative interior of a facet with outward normal . If , then meets . If , then meets .
Proof. Near , is the half-space , since is in the relative interior of . For small , , so is in the interior of that half-space near , and so in . The other case is the same with .
Theorem. For a point in the relative interior of an upper facet (), if and only if is not free along . For a lower facet, if and only if is not free along . So meets the relative interior of no facet that is not parallel to if and only if every upper facet is visible along and every lower facet is visible along , which is the condition under which Ahn and coauthors prove that a two-piece mold with opposite directions and a free parting surface exists.
Proof. By the lemma, the ray on the other side is always blocked, so membership in depends only on the ray on the own side. The second sentence follows facet by facet.
So the definition with two opposite directions and the facet-by-facet condition of Ahn and coauthors give the same parts. The two-sided form does not need the face normals, so it also applies at edges, vertices and faces parallel to .
Variants
- Faces parallel to . A face with is free if one of its rays leaves the part. In practice such faces also need a draft angle, which is a different test, draft angle analysis.
- External and internal undercuts. An external undercut is on the outside of the part, such as a lip or a side hole, and is formed by a side core that moves out sideways. An internal undercut is inside, such as a snap hook on an inner wall, and needs a lifter or a collapsible core.
- Undercut features. Fu, Fuh and Nee group the undercut faces of a B-rep part into features, so that each feature can get one side core, and the mold design can count them.
- All directions. Over all directions, the problem is to find with empty, or with the fewest undercut features. Chen, Chou and Woo use visibility maps of the pockets on the sphere, and Ahn and coauthors compute all directions with an empty .
- Planar parting. If the parting surface must be a plane, a part can fail even with empty. That is the model of Bose, Bremner and van Kreveld on the mold parting direction page.
Examples
A spool. Let be a base , a post and a cap , glued into one solid, like an I-beam turned on its end.
- With : the underside of the cap, the ring outside the post, has area . It is a lower facet, and its ray along meets the base. By the theorem it is an undercut. The top of the base, the ring of area 12, is an upper facet whose ray along meets the cap, so it is an undercut too. The four walls of the post are parallel to , and both of their rays run into the cap and the base, so they are in as well, with area . The total is 40. The top of the cap, the bottom of the base and the outer walls are free.
- With : every point has a free ray. For example, the post face is an upper facet, and its ray along at a height between 1 and 3 passes between the base and the cap. A point of the ring with is free along , and one with is free along . So is empty and the spool can be molded in two halves that part along .
A side hole. The cube with a square hole along from the mold parting direction page has the ceiling and the floor of the hole in , and nothing in .
Non-example. A face that is blocked along one direction only is not an undercut. The bottom face of the base of the spool, for , is blocked along by the material of the part, as the lemma says for every lower face, but it is free along , so the lower half forms it.
Known algorithms
- One direction, decision. Ahn and coauthors test whether a direction gives a two-piece mold in time. By the theorem this decides whether meets the interior of a facet that is not parallel to .
- The exact region. Project along onto a plane normal to . The part of an upper facet that is not free along is the part of under the projections of the facets that lie above it along . This is the hidden part of seen from far away along , the output of hidden surface removal in an orthographic view. Computing it for all facets gives , by the theorem.
- Rays and depth maps. On meshes, systems cast rays along from sample points with ray casting, or render the part along and with a z-buffer or with depth peeling, and mark a point as an undercut when it lies behind the first surface in both views. This is fast on graphics hardware, but its answer has the resolution of the sampling.
- Feature recognition. Fu, Fuh and Nee find the faces that are not visible in the parting direction on a B-rep and group them into undercut features. This works on the faces of a CAD model and returns features that a designer can name, at the cost of rules for each kind of feature.
- Choice of direction. Chen, Chou and Woo compute visibility maps of pockets, which are accessibility cones of groups of faces, and choose the opposite pair of directions with the fewest undercut pockets.
Bounds
- Decision. time for one direction, by Ahn and coauthors.
- Output size. The region can have pieces. Take bars along , held by a frame at their ends at a height above bars along , with a gap between the two layers and gaps between the bars. With , the top face of each lower bar is undercut where an upper bar crosses over it and free in the gaps, so has separate pieces for . Any method that outputs the region explicitly needs time on this part, and the worst case of hidden surface removal is the matching upper bound for the size.
- All directions. time, with a matching example of size , by Ahn and coauthors, as on the mold parting direction page.
Reductions
- The facet-by-facet test reduces to visibility from a point at infinity along , that is, to hidden surface removal for an orthographic view, once for and once for .
- For a part whose upper surface is a terrain over the plane normal to , every upper point is free along , so lies in the lower faces only.
- The choice of a direction with no undercut is the problem of mold parting direction, and a direction with no undercut is a direction in the intersection of the accessibility cones of the faces, with the sign chosen per face.
Applications
In mold and die design, the undercut features decide the number of side cores and lifters, which set the cost and the cycle time of the mold. A manufacturability analysis reports them to the designer, who can often remove an undercut with a small change, such as a hole through the floor under a snap hook. Undercut detection is run together with draft angle analysis, which checks the free faces for enough taper, and before parting line generation.
References
- Hee-Kap Ahn, Mark de Berg, Prosenjit Bose, Siu-Wing Cheng, Dan Halperin, Jiri Matousek and Otfried Schwarzkopf, Separating an object from its cast, Computer-Aided Design 34(8), 2002, 547 to 559, the two-piece cast with opposite directions and a free parting surface, the characterization by the visibility of the upper facets along d and of the lower facets along -d, the O(n log n) test of one direction and the O(n^4) computation of all directions
- M. W. Fu, J. Y. H. Fuh and A. Y. C. Nee, Undercut feature recognition in an injection mould design system, Computer-Aided Design 31(12), 1999, 777 to 790, the recognition of undercut features on a B-rep part from the faces that are not visible in the parting direction (general locator)
- Lin-Lin Chen, Shuo-Yan Chou and Tony C. Woo, Parting directions for mould and die design, Computer-Aided Design 25(12), 1993, 762 to 768, the visibility map of each pocket and the choice of the pair of opposite directions with the fewest cores
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 46XK35 Edit this page History Report an error Markdown