r2: R_CalcSurfaceTrianglePlanes fixed, clean up