added raycasting to lines with buffered geometry