MATLAB 帮助中心
三角形或四面体的外心
C = circumcenter(TR)
C = circumcenter(TR,ID)
[C,r] = circumcenter(___)
C = circumcenter(TR) 返回三角剖分 TR 中每个三角形或四面体的外心的坐标。
C
TR
示例
C = circumcenter(TR,ID) 返回按 ID 进行索引的三角形或四面体的外心的坐标。TR 中的三角形或四面体的标识号是属性 TR.ConnectivityList 的对应行号。
ID
TR.ConnectivityList
对于任一上述语法,[C,r] = circumcenter(___) 还返回 TR 中的外接圆或外接球的半径。
r
全部折叠
加载二维三角剖分数据并创建三角剖分表示。
load trimesh2d TR = triangulation(tri,x,y);
计算 TR 中每个三角形的外心。
C = circumcenter(TR);
以红色绘制三角剖分和外心。外心的 x 坐标包含在 C 的第一列中,对应的 y 坐标包含在第二列中。
triplot(TR) axis([-100 400 -50 350]) hold on plot(C(:,1),C(:,2),'r.') hold off
为一组点创建德劳内三角剖分。
rng default; P = rand(10,3); TR = delaunayTriangulation(P);
计算 TR 中前五个四面体的外心及其外接球的半径。
[C,r] = circumcenter(TR,[1:5]')
C = 5×3 0.5265 0.0860 1.1919 0.1626 0.3794 2.3048 0.3089 0.1067 -0.3349 0.5708 0.4461 0.3751 0.2805 0.7532 0.5855
r = 5×1 0.6129 1.5666 1.1135 0.4706 0.3670
三角剖分表示法,指定为标量 triangulation 或 delaunayTriangulation 对象。
triangulation
delaunayTriangulation
数据类型: triangulation | delaunayTriangulation
三角形或四面体标识,指定为标量或列向量,其每个元素对应于三角剖分对象中的单个三角形或四面体。每个三角形或四面体的标识号是 ConnectivityList 属性的对应行号。
ConnectivityList
数据类型: double
double
三角形或四面体的外心,以二维坐标的两列矩阵或三维坐标的三列矩阵形式返回。
外接圆或外接球的半径,以标量或向量形式返回。
全部展开
backgroundPool
ThreadPool
此函数完全支持基于线程的环境。有关详细信息,请参阅在基于线程的环境中运行 MATLAB 函数。
在 R2013a 中推出
incenter | delaunayTriangulation | triangulation
incenter
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处