Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

nodoubt

closed mesh

This topic is 5394 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

Advertisement
This is not really opengl-specific question, but ideally, you will want a bounding volume for your mesh. A sphere or aabb (axis-aligned bounding box) for example should do the job. It will be a much faster operation to test if a point is inside a sphere or bounding box than testing against your whole mesh.

Share this post


Link to post
Share on other sites
First do AABB/sphere test as dopeflow told you. The is it's in bouding volume cast a ray from point to infinity in random direction and count the number of triangles it hits.

count = odd --> inside
count = even --> outside


ps: Is this openGL question...

You should never let your fears become the boundaries of your dreams.

[edited by - _DarkWIng_ on October 11, 2003 1:00:06 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!