select an edge in the hierarchy

S

SS

Guest
Hi,
I want a function that would select an edge in the hierarchy
closest to the selected point.

I tried using dbGetNeighbor. This returns only the object and not the
edge. Moreover I dont have the bBox.

could anyone tell me how to do it.

thanks,
Sriram
 
SS wrote:

Hi,
I want a function that would select an edge in the hierarchy
closest to the selected point.

I tried using dbGetNeighbor. This returns only the object and not the
edge. Moreover I dont have the bBox.

could anyone tell me how to do it.

thanks,
Sriram
once you have the object,
if it is an instance,
open it and repeat the getneighbour with the coordinates inverse transformed. else
do the distance between line and point and the sort for all lines in the
object (deal with polygons, paths, and rects)
 

Welcome to EDABoard.com

Sponsor

Back
Top