Optics Moldability Check
optics_moldability_checkCheck a part's moldability along one pull axis: detect undercut faces, draft violations and thin walls, then return a scored pass/fail result with wall-thickness statistics.
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}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>"
},
"name": "optics_moldability_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| process | No | injection | |
| pull_axis | No | +z | |
| workspace | No | Run this call in this named workspace | |
| min_wall_mm | No | ||
| min_draft_deg | No |