> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# PrimitiveBoundingBox - ComfyUI Built-in Node Documentation

> Complete documentation for the PrimitiveBoundingBox node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/PrimitiveBoundingBox/zh.md)

PrimitiveBoundingBox 节点创建一个由其位置和大小定义的简单矩形区域。它接收左上角的 X 和 Y 坐标以及宽度和高度值，并输出一个边界框数据结构，该结构可在工作流中被其他节点使用。

## 输入参数

| 参数       | 数据类型 | 必填 | 范围       | 描述                   |
| -------- | ---- | -- | -------- | -------------------- |
| `x`      | INT  | 否  | 0 至 8192 | 边界框左上角的 X 坐标（默认值：0）。 |
| `y`      | INT  | 否  | 0 至 8192 | 边界框左上角的 Y 坐标（默认值：0）。 |
| `width`  | INT  | 否  | 1 至 8192 | 边界框的宽度（默认值：512）。     |
| `height` | INT  | 否  | 1 至 8192 | 边界框的高度（默认值：512）。     |

## 输出

| 输出名称           | 数据类型          | 描述                                             |
| -------------- | ------------- | ---------------------------------------------- |
| `bounding_box` | BOUNDING\_BOX | 一个包含所定义矩形的 `x`、`y`、`width` 和 `height` 属性的数据结构。 |
