check_solid
Determine whether 3D points lie inside or outside a mesh solid to detect hidden voids or steps before filling regions. Use ray-casting to verify assumed solid volumes.
Instructions
For each (x, y, z) point (mm), report whether it's inside the solid or outside it (mesh.contains, ray-casting based).
get_cross_section only ever traces the outer boundary at a given slice
it will not notice a fully-enclosed internal cavity that doesn't touch that boundary, and can misreport a shape as constant-cross-section when it actually has a void or a step hidden inside. Before assuming a region is solid (e.g. before extruding a wedge/loft to fill it), spot-check a few points inside that assumed volume with this function. Cross-checking with a second point just off any axis-aligned coordinate is a good idea: a ray fired exactly through a mesh edge/vertex can mis-count and give a wrong answer for that exact point.
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": {
"file_path": "<file_path>",
"points": "<points>"
},
"name": "check_solid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |