build and draw lines geometry