Hi. Bit stuck here.
I need to find the closest point on the closest curve to a given point (last point known)
The only way I can do it now is to select all curves in the document then iterate through them to measure all the closest points and find the smallest one. its slow as buggery… worse is that the routine can be called into an existing model that may contain many hundreds of curves which would really drag it down.
is there a built in routine to find the closest object (irrespective of geometry) then iterate backwards through those to determine if its a curve or not?
Or any other method that would be efficient?
Thanks.
(NOTE: no command line selection on this, so no get routines… this will be in the middle of an active routine so input curves will be unknowns at the time its called.