MATLAB 帮助中心
(不推荐)测试顶点是否通过边相连接
不推荐使用 isEdge(TriRep)。请改用 isConnected。
isEdge(TriRep)
isConnected
不推荐使用 TriRep。请改用 triangulation。
TriRep
triangulation
TF = isEdge(TR,V1,V2)
TF = isEdge(TR,EDGE)
如果 V1(i)、V2(i) 是三角剖分中的边,则 TF = isEdge(TR,V1,V2) 返回 1/0 (true/false) 标志的数组,其中每个元 TF(i) 都为 true。
V1(i)
V2(i)
TR
V1
V2
TF(i)
示例
TF = isEdge(TR,EDGE) 指定矩阵格式的边开始和结束索引。
EDGE
全部折叠
加载二维三角剖分并使用 TriRep 查询各对点之间是否存在边。
load trimesh2d trep = TriRep(tri,x,y);
测试顶点 3 和 117 是否通过边相连接。
isEdge(trep,3,117)
ans = logical 1
测试顶点 3 和 164 是否通过边相连接。
isEdge(trep,3,164)
ans = logical 0
使用 DelaunayTri 创建三维三角剖分。
DelaunayTri
X = rand(10,3); dt = DelaunayTri(X);
测试顶点 2 和 7 是否通过边相连接。
isEdge(dt,2,7)
三角剖分表示,指定为 TriRep 或 DelaunayTri 对象。
边顶点的索引,指定为列向量。V1 和 V2 表示网格中顶点的索引,即顶点坐标数组中的索引。
边顶点的索引,指定为矩阵。EDGE 为 n×2 矩阵,其中 n 是查询边的数量。
n
在 R2009a 中推出
delaunayTriangulation | triangulation
delaunayTriangulation
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处