Previous in Forum: Petroleum Company Imaging Data   Next in Forum: Prius Suffers Software Glitch
Close
Close
Close
Rate Comments: Nested
Anonymous Poster

Ordering of coordinates

10/12/2005 10:05 AM

Carlos Castro M writes:
I have series of coordinates from Hole Table of Solidworks, but can only order in X, Y or Label values, to insert them in a Punching Machine program I need order by nearest for be efficient. I tried with the Vectorial Distance between a coordinate and others, but is that the only way?

Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#1

Re: Ordering of coordinates

05/12/2007 6:08 PM

With a lot of points vectorial distance can produce quite a large quantity of number crunching.

I do the following to improve the speed of the optimizing program:

Sort the points into strips (the shortest side) (say Y)

Then sort the strips according to the other coordinate. Note that alternative strips must be sorted in ascending and descending sequence. (zig zag across the board)

Points with equal X values should also be sorted for Y.

The number of vectorial calculations are then greatly reduced.

You can stop at the width of the strip or the length to the next point.

It is true that this method sometimes leave almost adjacent points because they are in the next strip, This can be rectified by adjusting the strip.

__________________
Never do today what you can put of until tomorrow - Student motto
Reply
Reply to Forum Thread

Previous in Forum: Petroleum Company Imaging Data   Next in Forum: Prius Suffers Software Glitch

Advertisement