Author Topic: Size of Mesh  (Read 2738 times)

Offline matty47

  • Mr. Drawsprite
  • **
  • Posts: 71
    • View Profile
    • Matt and Marg's Homesite
Size of Mesh
« 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.

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5116
  • O Rly?
    • View Profile
Re: Size of Mesh
« Reply #1 on: 2009-Jun-15 »
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

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1793
    • View Profile
    • Homepage
Re: Size of Mesh
« Reply #2 on: 2009-Jun-15 »
I believe he wants to check the size of a mesh, not change the size.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10851
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Size of Mesh
« Reply #3 on: 2009-Jun-16 »
You can check te size by parsing the X_GETFACE information.

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5116
  • O Rly?
    • View Profile
Re: Size of Mesh
« Reply #4 on: 2009-Jun-16 »
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

Offline matty47

  • Mr. Drawsprite
  • **
  • Posts: 71
    • View Profile
    • Matt and Marg's Homesite
Re: Size of Mesh
« Reply #5 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

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1622
  • Particle Hawk
    • View Profile
Re: Size of Mesh
« Reply #6 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.
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)