Moved triangle generation to interior.c