MATLAB 帮助中心
德劳内三角剖分
DT = delaunay(P)
DT = delaunay(x,y)
DT = delaunay(x,y,z)
DT = delaunay(P) 基于矩阵 P 中的点创建二维或三维德劳内三角剖分。输出 DT 是一个三列(对于二维)或四列(对于三维)矩阵,其中每行包含三角剖分中构成三角形或四面体的输入点的行索引。
P
DT
DT = delaunay(x,y) 基于向量 x 和 y 中的点创建二维德劳内三角剖分。
x
y
示例
DT = delaunay(x,y,z) 基于向量 x、y 和 z 中的点创建三维德劳内三角剖分。
z
全部折叠
创建一个二维点集。计算并绘制德劳内三角剖分。
rng default; x = rand([20,1]); y = rand([20,1]); DT = delaunay(x,y); triplot(DT,x,y);
点,以矩阵形式指定,矩阵的列对应于三角剖分点的 x 坐标、y 坐标和(可能的)z 坐标。输出 DT 的每行都包含 P 的行号,它们构成三角剖分中的单个三角形或四面体。
x 坐标,指定为列向量。
y 坐标,指定为列向量。
z 坐标,指定为列向量。
使用 triplot、trisurf、trimesh 或 tetramesh 函数绘制 delaunay 的输出。
triplot
trisurf
trimesh
tetramesh
delaunay
要获得德劳内三角剖分的更多功能,请考虑创建 delaunayTriangulation 对象,并使用对象函数计算三角剖分的几何量和查询其属性。
delaunayTriangulation
全部展开
backgroundPool
ThreadPool
此函数完全支持基于线程的环境。有关详细信息,请参阅在基于线程的环境中运行 MATLAB 函数。
在 R2006a 之前推出
delaunayTriangulation | plot | triplot | trimesh | trisurf | tetramesh
plot
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处