Jump to content
  • Advertisement
Sign in to follow this  
alessio_pi_

selection faces along a straight path on the mesh

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

Hello,

I wrote this thread some days ago.

http://www.gamedev.net/community/forums/topic.asp?topic_id=576220

I tried to implement the algorithm that you suggest me, but I seem work only for smooth mesh.

I picked two point A and B on the mesh surface and build a segment l (A-B).
I get the first face from the first picked point and project the segment l on the triangle plane. I find the intersection point P between first face and line l.
After I find the edge on P lies and repeat the step for adjacent triangle that share the edge where P lies and now project the segment P-B on the next triangle and so on... My mesh is not a smooth and with high curvature change.

Can you suggest me a robust algorithm?
I looking for a shortest path between two point on a mesh with geodesics but seem it a complex algorithm to implement and I don't know if it's the right solution to my problem.

I need to selected all the faces along a segment defined by two points on the mesh surface following the segment.

Thanks in advance.



Share this post


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

  • 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!