Union
The smallest box around several boxes.
Node id bounds/union
The Union node outputs the smallest box that contains every box connected
to boxes.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| boxes | BoundingBox | — | multi |
Outputs
| Name | Type | Notes |
|---|---|---|
| box | BoundingBox |
Behaviour
- Any number of boxes.
boxesis a multi input: connect each box to its own slot. A single box gives the same box back. - Around a group. Groups have no box of their own: the union of the AABBs of its children is the box around everything.
- Gaps included. Boxes that are apart give one box spanning the space between them.
Errors
- At least one box must be connected.
Example
The union of a circle's and a rectangle's boxes, drawn as an outline around both.
Related nodes
- AABB: the box of one object.
- Intersects: whether two boxes overlap.