optics_moldability_check
Check if a part can be molded along a pull axis, detecting undercuts, draft violations, and wall thickness issues.
Instructions
Moldability screen for a part against a single pull axis — geometric, no
solver. Resolves the model handle's solid, then per face computes the draft
relative to pull_axis from the outward normal (draft_deg = 90 − angle(normal,
pull); 0 = a wall parallel to the pull that needs draft) and ray-casts the face
centroid along ±pull: a face the straight pull frees in neither direction is a
re-entrant UNDERCUT (reported with negative draft). Inward chords give a wall-
thickness distribution. Scored through the same DfM machinery as dfm_check.
pull_axis: '+z'/'-x'/… or an [x,y,z] vector. process ('injection'|'cnc'|
'sheet'|'fdm') sets the default min wall; override with min_wall_mm.
Returns {process, pull_axis, n_faces, undercut_faces, draft_violations, min_wall_violations, wall_thickness_stats:{min_mm,mean_mm,max_mm,n}, score, pass}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| process | No | injection | |
| pull_axis | No | +z | |
| min_wall_mm | No | ||
| min_draft_deg | No |