For simple case of two planes you can connect two planes with one controlling width, the other height then optimize them, however that is present in single plane primitive. If you want to do it on arbitrary geometry it is not really available at the moment. You could manually construct geometry but that would be very difficult...