Fix triangle generation bug.
Now Creates triangle for all four cases