Size of Mesh

Previous topic - Next topic

matty47

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.

Schranz0r

There is only X_SCALING

but you can only per factor! ( 0.5 = half of original size)
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Moru

I believe he wants to check the size of a mesh, not change the size.

Kitty Hello

You can check te size by parsing the X_GETFACE information.

Schranz0r

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
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

matty47

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

Hemlos

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.
Bing ChatGpt is pretty smart :O