Sign in to follow this  
xargon123

Intersection and exclusive or operations

Recommended Posts

xargon123    138
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this