ModelData: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