fix lua scripts binding bug
add line segment intersection functions