GLBasic forum

Main forum => GLBasic - en => Topic started by: matty47 on 2009-Jun-15

Title: Size of Mesh
Post by: matty47 on 2009-Jun-15
Is there any way to determine the size of a mesh? Looking for something that would give say height, width, depth of a loaded mesh.
Title: Re: Size of Mesh
Post by: Schranz0r on 2009-Jun-15
There is only X_SCALING

but you can only per factor! ( 0.5 = half of original size)
Title: Re: Size of Mesh
Post by: Moru on 2009-Jun-15
I believe he wants to check the size of a mesh, not change the size.
Title: Re: Size of Mesh
Post by: Kitty Hello on 2009-Jun-16
You can check te size by parsing the X_GETFACE information.
Title: Re: Size of Mesh
Post by: Schranz0r on 2009-Jun-16
Quote from: Moru on 2009-Jun-15
I believe he wants to check the size of a mesh, not change the size.

Whoops... you right :D
Title: Re: Size of Mesh
Post by: matty47 on 2009-Jun-16
Thanks for the replies. I looked at the ddd viewer sample draw normals function and thought that iterating through getfaces was going to be the way. Thanks again
Title: Re: Size of Mesh
Post by: Hemlos on 2009-Jun-17
In a 3d editor you can see the size on a grid, before you convert it to a .ddd file.
The file conversion should make a perfect to-scale rendering.
You might need to turn on the grid feature.
Which program did you use?


On the otherhand, if you create it in glbasic language, you should be able to just whip up an algorithm to measure your object by subtracting the most extreme ranges of vertices.