且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

3D 表面的不连续性

更新时间:2023-02-26 22:18:16

如果你从 x,y,z 绘制一个曲面,你必须告诉绘图软件哪些点构成了基本部分(如三角形或四边形)弥补你的大面积.

If you plot a surface from x,y,z you have to tell the plotting software which points form the elementary parts (like a triangle or a quadrilateral) that make up your large surface.

通常有一些聪明的东西可以从点列表或类似的东西中猜测元素.有时你必须传递表面数组的形状.

Usually there is something smart im place to guess the elements from a point list or the like . Sometimes you have to pass the shape of the surface array.

但重点是算法不知道如何处理列表中的最后一个点.它不知道它们连接到例如第一点.它将假定它们没有连接.

But the point is that the algorithm does not know how to handle the last points in the list. It does not know that they are connected to e.g. the first points. It will assume that they are not connected.

您的绘图函数中可能有一个选项,但通常您只需将列表中第一个点的副本附加到末尾.

There might be a option in your plotting function for this, but usually you just append copies of the first points at the list to the end.

(函数的文档显示了一个关键字connectgaps,但这可能无法解决这个问题.)

(The documentation to the function shows a keyword connectgaps, but that might not solve this.)