Connecting three points to be triangle