geom_boolean
Combine geometric objects using Boolean operations such as union, intersection, difference, compose, or partition, and optionally build the resulting COMSOL geometry feature.
Instructions
Combine geometric objects with a Boolean operation.
Args:
operation: Union | Intersection | Difference | Compose | Partition
(case-insensitive; "difference" removes subtract from input).
input: object names to combine, e.g. ["blk1","cyl1"] or ["blk1"].
subtract: objects to subtract (Difference only), e.g. ["cyl1"].
formula: set formula for Compose, e.g. "blk1+cyl1-blk2".
keep: keep input objects (Union/Intersection/Compose).
intbnd: keep interior boundaries ("on"/"off", bool accepted).
properties: extra properties, e.g. {"keepadd": "on"}.
tag: feature tag (None = automatic, e.g. dif1).
label: display label.
build: build after creation (default true).
geometry: geometry sequence tag (default "geom1").
component: component tag (None = auto).
model: model name/tag (None = current model).
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>"
},
"name": "geom_boolean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| keep | No | ||
| build | No | ||
| input | No | ||
| label | No | ||
| model | No | ||
| intbnd | No | ||
| formula | No | ||
| geometry | No | geom1 | |
| subtract | No | ||
| component | No | ||
| operation | Yes | ||
| properties | No |