帮助中心帮助中心
德劳内三角剖分
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
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office