Results 1 to 3 of 3

Thread: Line to polyline

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    4

    Line to polyline

    I don't know here is a good place for this question or not but I have a problem with converting tiny lines to polyline.
    Tiny lines are not snapped to a common intersection, but are so close to each other that can be considered as a polyline. The problem is small distance between those tiny line's end points.
    The main goal is snapping nodes (at ends of lines) within the tolerance distance to a common intersection in order to converting them to a polyline.
    First I added all nodes (ends of lines) to an array but searching for the closest point to each line is so slow.
    Any suggestion?

    Sorry for my poor English, if any.

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: Line to polyline

    One way could be: Instead of searchng the closest point use the first point that is close enough to be used. That way the searching loop is smaller, however if yu have multiple lines that could connect on a single point point, the result might not be useable.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    4

    Re: Line to polyline

    however if yu have multiple lines that could connect on a single point point, the result might not be useable.
    Ofcourse this is another problem, but it seems that searching for the closest point to each line is the best method.
    Anyway thanks for your comment.

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