FitMesh
Fits a mesh into a box.
FitMesh ( mesh,x#,y#,z#,width#,height#,depth#[,uniform] )
Parameters
- mesh
- the mesh's handle.
- x#
- the box's left side.
- y#
- its bottom.
- z#
- its near side.
- width#
- how wide the box is.
- height#
- how tall it is.
- depth#
- how deep it is.
- uniform (optional)
- 1 scales the same amount every way, keeping the mesh's shape, so it fits inside the box; 0 stretches it to fill the box exactly.
Description
Scales and moves a mesh's shape so it fits exactly in a box. Handy for models that come in at all sorts of sizes.
