For Programmers: Free Programming Magazines  


Home > Archive > Tcl > August 2007 > Re: Re: Select a canvas line "point"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Re: Select a canvas line "point"
Gerhard Reithofer

2007-08-27, 8:34 pm

Hi,
thanks all for your valuable hints,.

After some testing I implemented a simple "nearest" calculation using
the hypoth() function point by point (thank's RS), no problem by 200
points.

Another approach by creating single line segemnts for each line pair
was abolished because many objects created many <Enter>/<Leave> events
as the apperance was "flickering", the performance was great.

BLT was rejected, because the application is running on several unix
platforms and it is not ensured, that this binary extension is always
present.

If the perfomance is lacking sometime, optimizations will be implemented
(e.g. crosswire algorithm, thx Uwe).

--
Gerhard Reithofer
Tech-EDV Support Forum - http://support.tech-edv.co.at
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com