Precise collisions on custom 2D geometry

Hello,
I have a question whether it is possible to have precise collisions on lines created through TLineSetNode. I am creating that custom geometry via X3DNodes via TLineSetNode, but collision is β€œrough”, by some shape surrounding geometry. Is there an easier way to determine collision, so line can be relatively precisely picked by mouse (without need to iterate through all lines and checking whether mouse point lies on line)? Thanks.

Sorry for a delay in answering – I see this thread is duplicate of Picking 2D geometry , see my answer there :slight_smile: