Jump to content
  • Advertisement
Sign in to follow this  
david w

Find mesh size?

This topic is 3054 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to figure out a method to determine the size of an mesh/object. I need to determine what the approximate size each mesh is.(no scaling) What would be a good method to do this? Also I need to determine the center point of the object in model space.

Share this post


Link to post
Share on other sites
Advertisement
Usually you just iterate through the untransformed vertices. Which API are you using? D3DX has a function (D3DXComputeBoundingSphere) that will do it for you.

Share this post


Link to post
Share on other sites
Im using DX 9. Thanks.

EDIT: It worked exactly as it should. I even was able to solve a different problem from this one because on of the inputs was the same as this. Thanks a million.

[Edited by - david w on February 8, 2010 5:49:03 AM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!