If the API CombineRgn function is used to find the intersection of 2 polygons, is there a way to retrieve the coordinates of the newly created region?
Printable View
If the API CombineRgn function is used to find the intersection of 2 polygons, is there a way to retrieve the coordinates of the newly created region?
* bump *
I MUST know the coordinates of the resulting region in order to perform some calculations.
* yet another bump *
Let me put it another way.
I have:
poly1 with coordinates x1(i), y1(i) where i runs from 1 to N1
poly2 with coordinates x2(j), y2(j) where j runs from 1 to N2
I want find the coordinates x3(k), y3(k) where k runs from 1 to N3 of poly3, which is the intersection -the common region- of poly1 and poly2.
But I don't care that much about a function that plots it, I want a subroutine that returns the coordinates of poly3 given those of poly1 and poly2.
Does that exist at all in VB? Writing my own function is VERY difficult.
it may help to post a picture, or some code
I can't understand what you want.
Yes, I suppose I've explained it in a rather confusing fashion. here's the picture.Quote:
Originally posted by dglienna
it may help to post a picture, or some code
I can't understand what you want.
http://www.vbforums.com/attachment.p...postid=1762366