compare_volumes
Measure how much of one volume field falls into each band of another, such as density inside a collider SDF, by sampling both on a grid.
Instructions
How much of one field sits in each band of another field.
"How much density is inside the collider" is field="density", against="surface" (an SDF), bands=[-1000, 0, 1000]: the first band's field_total is what is inside. Both are sampled on a grid over field's box.
Args: node_path: SOP holding field. field: Volume to total, e.g. "density". against: Volume whose value picks the band, e.g. a collider SDF. against_node: SOP holding against, when not node_path. bands: Band count, or a list of band edges.
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": {
"node_path": "<node_path>",
"field": "<field>",
"against": "<against>"
},
"name": "compare_volumes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bands | No | ||
| field | Yes | ||
| against | Yes | ||
| node_path | Yes | ||
| against_node | No |