[英]Plot a quad face in Octave
I have the coordinates (X,Y and Z) of 4 points, (not necessarily lying on the same plane and not necessarily a rectangle!) and I want to plot this quad face in octave. 我有4个点的坐标(X,Y 和 Z)(不一定位于同一平面上,也不一定是矩形!),我想将此四边形绘制为八度。
I used the following plot function 我使用了以下绘图功能
plot([x1 x2 x3 x4], [y1 y2 y3 y4], [z1 z2 z3 z4], '-') 图([x1 x2 x3 x4],[y1 y2 y3 y4],[z1 z2 z3 z4],'-')
but it didn't work. 但这没用。
I'd like to have as a result, not a wireframe plot (ie only the edges plotted) but the whole surface. 因此,我想得到的不是线框图(即仅绘制的边线),而是整个表面。
Any suggestions? 有什么建议么?
Thanks! 谢谢!
Edit: I edited my question, because I'd like to know if it is possible to achieve a contour "less continuous" (see following images). 编辑:我编辑了我的问题,因为我想知道是否有可能实现“不太连续”的轮廓(请参见下图)。
The result I get is the following image. 我得到的结果是下图。 Contour continuous 轮廓连续
I'd like instead to get a less continuous contour, in which I can clearly see the boundaries between the different coloured parts (see following image). 相反,我希望得到一个不太连续的轮廓,在该轮廓中我可以清楚地看到不同颜色部分之间的边界(请参见下图)。
Any suggestions? 有什么建议么?
Thanks 谢谢
patch
是你的朋友
patch([x1 x2 x3 x4], [y1 y2 y3 y4], [z1 z2 z3 z4], 'red')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.