Jump to content
  • Advertisement
Sign in to follow this  

Intersection and exclusive or operations

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

Hi everyone, I am again in need of some guidance and probably a good 2D graphics book! I have a polygon and another set of polygons and the vertices are described by floating point 2D coordinates. Now, these polygons can intersect among each other and what I need to calculate is the final polygon that is composed of the region left over in the main polygon after subtracting all the intersected regions with the other polygons. Is there a website or a book that explains these techniques and hopefully provide some pseudocode/real code. This is a pretty urgent requirement and I have a feeling it will take me weeks to understand and implement something like this. I was using Qt before and that has a QRegion class which does all that but unfortunately that works on discrete(integer) values and there is a bad loss of precision. Cheers and thanks for any help you can give me. xarg

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!