Ensuring the manufacturability of a freeform surface