Oblique projection in matlab grid

When presenting optical layouts, it is often convenient and graphically pleasing to represent the optical system in oblique (rather than spelling or perspective) projection with all blocks on the optical axis.

Suppose you want to superimpose on such a layout a Matlab grid or 3D contour plot in oblique / Cavalier projection (namely: a grid representing the distribution function of points on the image plane).

Matlab usually allows 3D graphics in spelling projection or perspective projection. Is there a way to adjust the camera view in Matlab so that the 3D plots are returned in cavalry projection?

+3


source to share


1 answer


As far as I understand, Matlab does not support this out of the box.

But look at sending file sharing obliqueview

. It seems like it takes in 3D graphics objects, shears them out of them, and then splits them into 2d.



I just tried it and it seems to be somewhat compatible with the new "hg2" graphics system Matlab2014b and later. (There is one non-critical warning when running the example.)

+3


source







All Articles