Algorithm Search⌘K

Techniqueintro

Draft angle analysis

Also called draft analysis.

Colours each face of a part by the angle between its normal and the pull direction, so faces with too little draft for release from the mold are found.

Draft angle analysis measures, for each face or each point of a molded or cast part, the angle between the surface and the pull direction dd of the mold, and marks the places where this angle is too small for the part to slide out. A wall that is exactly parallel to dd rubs along the mold over its whole height when the mold opens, so walls get a small taper, the draft. The analysis is one formula per normal, α=arcsin⁡(n⋅d/(∣n∣∣d∣))\alpha = \arcsin\bigl(n \cdot d / (\lvert n \rvert \lvert d \rvert)\bigr), and a test of ∣α∣\lvert\alpha\rvert against a minimum αmin⁡\alpha_{\min}. It assumes that the direction is fixed and that the face is not an undercut. The tests for those are mold parting direction and undercut detection.

In plain words

When a molded part comes out of its mold, its side walls slide along the mold. If a wall is exactly straight up and down, it scrapes along the whole way and may stick. So designers tilt walls a little, so that they come free as soon as the mold starts to move.

The analysis looks at every face and asks how much it is tilted from the direction in which the mold opens. Faces with enough tilt get one colour, and faces with too little tilt get another, so the designer can fix them.

When it applies

  • The part is made in a mold or die that opens by a straight pull along a known direction dd: injection molding, die casting, sand casting with a pattern, forging.
  • The face is formed by one half of the mold and is not an undercut. An undercut face cannot come free at any draft.
  • There is a minimum draft αmin⁡>0\alpha_{\min} > 0 for the material, the surface texture and the depth of the wall. It is a design rule from the material supplier or a design handbook, not a value that geometry gives.

The template

The draft angle. Let nn be a normal of the surface at a point, pointing out of the part. The draft angle α∈[−90∘,90∘]\alpha \in [-90^\circ, 90^\circ] is the angle between the tangent plane and the direction dd, with a sign:

sin⁡α=n⋅d∣n∣ ∣d∣.\sin \alpha = \frac{n \cdot d}{\lvert n \rvert \, \lvert d \rvert}.

Why. The angle between a line and a plane is the complement of the angle φ\varphi between the line and the normal of the plane: the line, its projection onto the plane and the normal lie in one plane, and the projection is perpendicular to the normal. So α=90∘−φ\alpha = 90^\circ - \varphi and sin⁡α=cos⁡φ=n⋅d/(∣n∣∣d∣)\sin\alpha = \cos\varphi = n \cdot d / (\lvert n \rvert \lvert d \rvert). The sign tells the side: α>0\alpha > 0 means the surface faces +d+d and goes to the half that moves along +d+d; α<0\alpha < 0 means it goes to the half that moves along −d-d.

  1. DRAFT-ANALYSIS(faces, d, α_min)
  2. 1for each face f (or each sample point of a curved face) with outward normal n
  3. 2α ← arcsin(n · d / (|n| |d|))
  4. 3if α ≥ α_min then class[f] ← "positive draft, half +d"
  5. 4else if α ≤ -α_min then class[f] ← "negative draft, half -d"
  6. 5else class[f] ← "insufficient draft"
  7. 6return class

An exact test. Lines L3 and L4 do not need the arcsine. Since sin⁡\sin is increasing on [−90∘,90∘][-90^\circ, 90^\circ], α≥αmin⁡\alpha \ge \alpha_{\min} holds if and only if n⋅d>0n \cdot d > 0 and (n⋅d)2≥sin⁡2(αmin⁡) ∣n∣2∣d∣2(n \cdot d)^2 \ge \sin^2(\alpha_{\min}) \, \lvert n \rvert^2 \lvert d \rvert^2. For integer or rational nn and dd, both sides are exact except the one constant sin⁡2αmin⁡\sin^2 \alpha_{\min}, which can be given as a rational bound. This decides faces close to the threshold correctly, where a rounded α\alpha can be on the wrong side.

Cost. One dot product and one comparison per face or per sample point, so linear in the size of the model.

Classic examples

Pull direction d=(0,0,1)d = (0, 0, 1) and minimum draft αmin⁡=1∘\alpha_{\min} = 1^\circ, so sin⁡2αmin⁡=0.00030459\sin^2 \alpha_{\min} = 0.00030459.

normal nn n⋅dn \cdot d ∣n∣2\lvert n \rvert^2 α\alpha class
(10,0,1)(10, 0, 1) 1 101 5.71∘5.71^\circ positive draft
(20,0,1)(20, 0, 1) 1 401 2.86∘2.86^\circ positive draft
(0,57,−1)(0, 57, -1) −1-1 3250 −1.005∘-1.005^\circ negative draft
(0,100,1)(0, 100, 1) 1 10001 0.573∘0.573^\circ insufficient
(1,0,0)(1, 0, 0) 0 1 0∘0^\circ insufficient

The face (0,57,−1)(0, 57, -1) is just past the threshold. The exact test compares (n⋅d)2=1(n \cdot d)^2 = 1 with 0.00030459×3250=0.989910.00030459 \times 3250 = 0.98991, so it passes. The face (0,100,1)(0, 100, 1) gives 0.00030459×10001=3.046>10.00030459 \times 10001 = 3.046 > 1, so it fails. The vertical face (1,0,0)(1, 0, 0) has zero draft and is always in the insufficient class.

What a degree means. A wall of height hh with draft α\alpha moves its top edge sideways by htan⁡αh \tan \alpha. For h=50h = 50 mm and α=1∘\alpha = 1^\circ this is 0.870.87 mm. So the draft changes the size of the part at the top of deep walls, and the designer must allow for it in the tolerances.

Variations

  • Colour maps on curved surfaces. CAD systems evaluate α\alpha at the points of a tessellation or of the surface and colour the surface by it. The curves α=±αmin⁡\alpha = \pm\alpha_{\min} are isophotes of the normal field for the light direction dd, and the curve α=0\alpha = 0 is the silhouette curve for dd, where the parting line runs on a smooth part.
  • Three classes or five. Some tools split each class again, for example into "enough draft", "too little draft" and "vertical", on each side, so that the designer sees both the side and the problem.
  • Adding draft. The same test drives the repair: a draft feature rotates a wall about a neutral line on it by the missing angle. The test is then run again.
  • Textured surfaces. A textured wall needs more draft than a smooth one, since the texture locks into the mold. The rule αmin⁡\alpha_{\min} then depends on the face, not only on the part.

Pitfalls

  • Normals that point in. A face with the wrong orientation gets the opposite sign and is put on the wrong side. Check the orientation of the model first.
  • Undercuts with good draft. A face under a lip can have a large positive draft and still be blocked by the lip. Draft analysis does not test that. Run undercut detection as well.
  • One normal per face. A curved face can have enough draft at one end and too little at the other. Test sample points, or bound the normal over the face.
  • Rounding near the threshold. Comparing a rounded α\alpha with αmin⁡\alpha_{\min} can put a face just at the limit on either side. Use the squared test above.

Exercises

  1. Show that rotating a vertical wall by the angle β\beta about a horizontal line on it, away from the part, gives it the draft angle β\beta.
  2. For d=(0,0,1)d = (0, 0, 1) and n=(a,0,1)n = (a, 0, 1) with an integer a>0a > 0, find the largest aa for which the face passes a minimum draft of 1∘1^\circ. (Answer: a=57a = 57, since 1≥0.00030459 (a2+1)1 \ge 0.00030459\,(a^2 + 1) holds for a≤57a \le 57 and fails for a=58a = 58.)

References

  1. M. W. Fu, A. Y. C. Nee and J. Y. H. Fuh, The application of surface visibility and moldability to parting line generation, Computer-Aided Design 34(6), 2002, 469 to 480, the classification of the faces of a molded part by their orientation to the parting direction, with the faces parallel to it as a separate class

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • three classic examples