znk_boolean
Combine two solids with union, subtract, or intersect operations, returning measurements and a replayable recipe. Accepts prior tool results as operands for chained CSG modeling.
Instructions
Boolean operation between two solids: operation = union | subtract (a minus b) | intersect. a and b are recipes from znk_create / znk_boolean / znk_import; a whole previous tool result is also accepted. Planar polyhedra are exact; curved bodies may use the tessellated curved-CSG fallback (method/volume_source says so). Returns measurements plus a new replayable recipe. Kernel errors (e.g. 2001 Degenerate, 2004 Coincident, 2009 BooleanFailed) are passed through unchanged.
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": {
"operation": "<operation>",
"a": "<a>",
"b": "<b>"
},
"name": "znk_boolean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | first operand recipe or previous tool result | |
| b | Yes | second operand recipe or previous tool result | |
| operation | Yes | union | subtract (a-b) | intersect | |
| tessellate | No | also tessellate the result (default true) |