Matlab网格中的倾斜投影 [英] Oblique projection in Matlab mesh

查看:302
本文介绍了Matlab网格中的倾斜投影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在表示光学布局时,通常方便且以图形表示,以倾斜(而不是正交或透视)投影形式表示光学系统,所有块都在光轴上.

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

假设有人想在倾斜/骑士的这种布局上叠加Matlab网格或3D等高线图投影(具体来说:代表图像平面上点扩散函数的网格).

Suppose one wanted to overlay on such a layout a Matlab mesh, or 3D contour plot in an oblique/cavalier projection (to be specific: a mesh representing a point spread function on an image plane).

Matlab通常允许在正交投影或透视投影中进行3D绘图.有没有一种方法可以在Matlab中配置相机视图,以便以骑士投影的形式返回3D图?

Matlab normally allows 3D plots in either orthographic projection or perspective projection. Is there a way to configure the camera view in Matlab so that 3D plots are returned in cavalier projection?

推荐答案

据我了解,Matlab不支持这种现成的方式.

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

但是请查看文件交换提交 obliqueview .它似乎采用了3D图的对象,因此进行了剪切转换,然后在2d中绘制它们.

But have a look at the file exchange submission obliqueview. It seems to take the objects of a 3d plot, makes a shear transform of them and then plots them in 2d.

我刚刚尝试过,它似乎与Matlab2014b及更高版本的新图形系统"hg2"兼容. (在运行示例时,有一个非严重警告.)

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

这篇关于Matlab网格中的倾斜投影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆