Mesh Dimensions

Blitz3D Forums/Blitz3D Programming/Mesh Dimensions

Ash_UK(Posted 2006) [#1]
Hi all :) Is there any way of having control over the dimensions of mesh/entity. I am trying to have the option to load a 3D object in and have the user type in the dimensions so that the object resizes to fit the specified height and width from the users input. Is there any way to do this?

Cheers

Ash


Stevie G(Posted 2006) [#2]
http://www.blitzbasic.com/b3ddocs/command.php?name=FitMesh&ref=3d_a-z

So ...

Width# = 10
Height# = 2
Depth#, 15

FitMesh Mesh , -Width*.5, -Height*.5, -Depth*.5, Width, Height, Depth.

Stevie.


Ash_UK(Posted 2006) [#3]
Thankyou once again Stevie :) You're a star!

Ash