![]()  | 
| 
 MultiPolyLineVisual3D and hit test area - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: Ab3d.PowerToys (https://forum.ab4d.com/forumdisplay.php?fid=9) +--- Thread: MultiPolyLineVisual3D and hit test area (/showthread.php?tid=4065)  | 
MultiPolyLineVisual3D and hit test area - tim.rutter - 01-05-2018 I was wondering if there is a convenient way of increasing the hit test area of a MultiPolyLineVisual3D? The only solution i can think of is to duplicate the MultiPolyLineVisual3D and make this duplicated line transparent with a bigger LineThickness and use this for handling mouse over/click events and then perform actions on the associated visible line. I'm using the EventManager3D for event handling. The problem with this is doubles the number of lines I have on screen which adds overhead. RE: MultiPolyLineVisual3D and hit test area - abenedik - 01-05-2018 One way to do that is to add thicker and transparent 3D lines (as you have suggested). But a better way is to convert line's 3D positions into 2D screen positions and then get the closest line from mouse position in 2D space. A sample on how to do that can be found with the samples that come with Ab3d.PowerToys library - see "3D lines" - "3D line selection" sample.  |