Model:getBoundingBox

Edit

Returns the 6 values of the Model's axis-aligned bounding box.




Get the bounding box of the whole Model.

Arguments

None

Returns

NameTypeDescription
minxnumber The minimum x coordinate of the vertices in the Model.
maxxnumber The maximum x coordinate of the vertices in the Model.
minynumber The minimum y coordinate of the vertices in the Model.
maxynumber The maximum y coordinate of the vertices in the Model.
minznumber The minimum z coordinate of the vertices in the Model.
maxznumber The maximum z coordinate of the vertices in the Model.

Get the bounding box of a single mesh in the Model.

Arguments

NameTypeDescription
meshnumber The mesh to get the bounding box of.

Returns

NameTypeDescription
minxnumber The minimum x coordinate of the vertices in the Model.
maxxnumber The maximum x coordinate of the vertices in the Model.
minynumber The minimum y coordinate of the vertices in the Model.
maxynumber The maximum y coordinate of the vertices in the Model.
minznumber The minimum z coordinate of the vertices in the Model.
maxznumber 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

NameTypeDescription
meshnumber The mesh to get the bounding box of.
partnumber The part to get the bounding box of.

Returns

NameTypeDescription
minxnumber The minimum x coordinate of the vertices in the Model.
maxxnumber The maximum x coordinate of the vertices in the Model.
minynumber The minimum y coordinate of the vertices in the Model.
maxynumber The maximum y coordinate of the vertices in the Model.
minznumber The minimum z coordinate of the vertices in the Model.
maxznumber The maximum z coordinate of the vertices in the Model.

See also