MATLAB 帮助中心
三角剖分元素的内心
C = incenter(TR)
C = incenter(TR,ID)
[C,r] = incenter(___)
C = incenter(TR) 返回三角剖分 TR 中每个三角形或四面体的内心的坐标。
C
TR
示例
C = incenter(TR,ID) 返回 ID 指定的每个三角形或四面体的内心的坐标。TR 中的三角形或四面体的标识号是属性 TR.ConnectivityList 的对应行号。
ID
TR.ConnectivityList
[C,r] = incenter(___) 还返回内切圆或内切球的半径。
r
全部折叠
创建二维德劳内三角剖分。
x = [0 1 1 0 0.5]'; y = [0 0 1 1 0.5]'; TR = delaunayTriangulation(x,y);
计算三角形的内心。
C = incenter(TR);
绘制三角形和内心。
triplot(TR) axis equal axis([-0.2 1.2 -0.2 1.2]) hold on plot(C(:,1),C(:,2),'*r')
加载三维三角剖分。
load tetmesh
计算三角剖分中前五个四面体的内心坐标,以及其内切球的半径。
TR = triangulation(tet,X); [C,r] = incenter(TR,[1:5]')
C = 5×3 -6.1083 -31.0234 8.1439 -2.1439 -31.0283 5.8742 -1.9555 -31.9463 7.4112 -4.3019 -30.8460 10.5169 -3.1596 -29.3642 6.1851
r = 5×1 0.7528 0.9125 0.8430 0.6997 0.7558
三角剖分表示法,指定为标量 triangulation 或 delaunayTriangulation 对象。
triangulation
delaunayTriangulation
数据类型: triangulation | delaunayTriangulation
三角形或四面体 ID,指定为标量或列向量,其每个元素对应于三角剖分对象中的单个三角形或四面体。每个三角形或四面体的标识号是 ConnectivityList 属性的对应行号。
ConnectivityList
数据类型: double
double
内心,以矩阵形式返回,其各行为内心的坐标。
内切圆或内切球的半径,以向量形式返回。
全部展开
backgroundPool
ThreadPool
此函数完全支持基于线程的环境。有关详细信息,请参阅在基于线程的环境中运行 MATLAB 函数。
在 R2013a 中推出
circumcenter | delaunayTriangulation | triangulation
circumcenter
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处