added options for quad program construction in patchConstraints