trimProjReg2d function

trimProjReg2d