Fixed some warning and modify the line class union, difference and intersection logic.