how to compute mesh output grinder