TheSwamp

Code Red => .NET => Topic started by: nobody on September 23, 2016, 05:24:34 PM

Title: Distance Between Objects
Post by: nobody on September 23, 2016, 05:24:34 PM
Trying to find the best way to get the coordinates for the closest points between two polylines.  I am thinking of iterating through the longer polyline every 0.05' and storing the distances in an array.  Once I find out the minimum distance I will reiterate to find that same location (using the distance), but this time store the coordinates.  Problem is, this can result in thousands upon thousands of calculations.  Anyone know a better way to do this?
Title: Re: Distance Between Objects
Post by: dgorsman on September 26, 2016, 10:19:28 AM
Curves or straight segments?
Title: Re: Distance Between Objects
Post by: nobody on September 26, 2016, 04:18:04 PM
Curves or straight segments?

Curves preferably but suppose I could limit to straight segments for now.