Use a helper function outputConstantsInPlane in outputConstants.