draw points and segments