Order Polygon coordinates

Discussion in 'AutoCAD' started by JLO, Feb 13, 2004.

  1. JLO

    JLO Guest

    Hello
    i have several points coordinates in an array. Those coordinates draw a
    polygon but the coordinates are not in order.
    i need, before draw the poligon, order the coordinates but i have tried to
    do it but it does not work.
    any help??
    thanks
    sorry for my english
     
    JLO, Feb 13, 2004
    #1
  2. JLO

    SpeedCAD Guest

    Hi...

    How you pass the coordinates??? or How you get it???
     
    SpeedCAD, Feb 13, 2004
    #2
  3. JLO

    JLO Guest

    I got the coordinates from two, 3 or more polygons. sometimes i have to make
    a fusions between severals polygons and get one polygon from those polygons.
     
    JLO, Feb 13, 2004
    #3
  4. Not a valid image !!
    What kind of image is that ?

    Oye compadre, sería mejor un jpeg !
     
    Jorge Jimenez, Feb 13, 2004
    #4
  5. So what youre really looking for is way to get only the resulting outer
    boundary ?
     
    Jorge Jimenez, Feb 13, 2004
    #5
  6. JLO

    JLO Guest

    Te escribo en español
    principalmente trabajo con informacion de limites de predios o no se como le
    llamen alla, los limites de cada casa. En determinado
    momento se pueden fusionar dos o mas casas en una sola. Entonces cada
    poligono significa los limites de cada casa, cuando se hace
    la fusion de dos o mas limites de cada casa nececito reconstruir los
    limites a partir de los predios fusionados.
    ya obtengo en un arreglo todas las coordenadas que no se duplican dentro de
    los poligonos pero como no estan en orden no puedo generar un nuevo
    poligono.
    es lo unico que me falta. gracias
     
    JLO, Feb 13, 2004
    #6
  7. So you have parcels that you want to fuse together and have a resulting
    parcel.

    A simple solution would be to:

    1) convert your polylines to regions
    2) add all the regions
    3) explode the resulting region

    You should get your border polyline.
     
    Jorge Jimenez, Feb 13, 2004
    #7
  8. JLO

    LochDhu Guest

    Just to chime in on the chance that JLO has Autodesk Map - this is an
    out-of-the-box function of Autodesk Map.

    Scott
     
    LochDhu, Feb 14, 2004
    #8
  9. JLO

    wivory Guest

    You need to establish/provide more information or rules. It is possible to validly join a number of points into a polygon in multiple ways.

    For example, I just created the following 4 points on a piece of paper:

    S (7,5)
    T (3,3)
    E (1,1)
    P (2,5)

    I was then able to create a valid polygon with P.E.T.S. but I was also able to create an equally valid polygon with P.E.S.T.!!

    Regards

    Wayne Ivory
    IT Analyst Programmer
    Wespine Industries Pty Ltd
     
    wivory, Feb 16, 2004
    #9
  10. I stumbled onto the same problem and solved it using the create
    region-explode region method, but there is also public-domain ARX library
    with many 2D/3D geometry functions. One of them is creating closed
    _outermost_ boundary from given set of points. I didn't work well for me as
    there is no valid VBA example, but there is a VisualLISP code that runs it.

    Take a peek at:
    "David Eberly's Magic Software geometric library"
    http://xarch.tu-graz.ac.at/autocad/ads/eberly/

    Regards,
    Maksim Sestic

    to validly join a number of points into a polygon in multiple ways.
    able to create an equally valid polygon with P.E.S.T.!!
     
    Maksim Sestic, Feb 16, 2004
    #10
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.