Hi

How to find maximum distance of any two points between two LWPolylines. Both polylines are are Zero Elevation.

One way is to break any one polyline into 100 (or more) segments (points) and then loop through the points and find the minimum distance with other polyline (using vlax-curve-getClosestPointTo), storing all values in a list and then finally taking the maximum value of all the distances.

However, this approach is largely dependent upon the number of segments. Is there any other direct way to do it ?