plane3d defined with functions has odd shape