fixed small bug in view3Dopt.m