ModelData:getBoundingBox
EditReturns the 6 values of the model's axis-aligned bounding box.
Get the bounding box of the whole model.
Arguments
None
Returns
| Name | Type | Description |
| minx | number | The minimum x coordinate of the vertices in the model. |
| maxx | number | The maximum x coordinate of the vertices in the model. |
| miny | number | The minimum y coordinate of the vertices in the model. |
| maxy | number | The maximum y coordinate of the vertices in the model. |
| minz | number | The minimum z coordinate of the vertices in the model. |
| maxz | number | The maximum z coordinate of the vertices in the model. |
Get the bounding box of a single mesh in the model.
Arguments
| Name | Type | Description |
| mesh | number | The mesh to get the bounding box of. |
Returns
| Name | Type | Description |
| minx | number | The minimum x coordinate of the vertices in the model. |
| maxx | number | The maximum x coordinate of the vertices in the model. |
| miny | number | The minimum y coordinate of the vertices in the model. |
| maxy | number | The maximum y coordinate of the vertices in the model. |
| minz | number | The minimum z coordinate of the vertices in the model. |
| maxz | number | The maximum z coordinate of the vertices in the model. |
Get the bounding box of a single part of a mesh in the model.
Arguments
| Name | Type | Description |
| mesh | number | The mesh to get the bounding box of. |
| part | number | The part to get the bounding box of. |
Returns
| Name | Type | Description |
| minx | number | The minimum x coordinate of the vertices in the model. |
| maxx | number | The maximum x coordinate of the vertices in the model. |
| miny | number | The minimum y coordinate of the vertices in the model. |
| maxy | number | The maximum y coordinate of the vertices in the model. |
| minz | number | The minimum z coordinate of the vertices in the model. |
| maxz | number | The maximum z coordinate of the vertices in the model. |