Results 1 to 5 of 5

Thread: Polygon clipping

  1. #1

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Polygon clipping

    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?
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  2. #2

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573
    * bump *

    I MUST know the coordinates of the resulting region in order to perform some calculations.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  3. #3

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573
    * 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.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    it may help to post a picture, or some code
    I can't understand what you want.

  5. #5

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573
    Originally posted by dglienna
    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.

    Attached Images Attached Images  
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width