featureEdges
曲面三角剖分的锐边
说明
示例
曲面特征边
查找并绘制曲面的特征边。
创建二维德劳内三角剖分。
x = [0 0 0 0 0 3 3 3 3 3 3 6 6 6 6 6 9 9 9 9 9 9]'; y = [0 2 4 6 8 0 1 3 5 7 8 0 2 4 6 8 0 1 3 5 7 8]'; DT = delaunayTriangulation(x,y); T = DT.ConnectivityList;
向三角剖分添加高程以创建一个曲面并绘制该曲面。
z = [0 0 0 0 0 2 2 2 2 2 2 0 0 0 0 0 0 0 0 0 0 0]'; trisurf(T,x,y,z,'FaceColor','cyan') axis equal
在经过提升的曲面上创建新三角剖分,并使用滤角 计算并绘制其特征边。
TR = triangulation(T,x,y,z); F = featureEdges(TR,pi/6)'; plot3(x(F),y(F),z(F),'k','LineWidth',1.5); axis equal
输入参数
TR
— 三角剖分表示法
标量三角剖分对象
仅用于二维三角剖分的三角剖分表示,指定为标量 triangulation
或 delaunayTriangulation
对象。
数据类型: triangulation
| delaunayTriangulation
theta
— 滤角
标量
滤角(以弧度为单位),指定为范围 [0,π] 内的标量。featureEdges
返回其二面角偏离 π 的角度大于 theta
的相邻三角形。
数据类型: double
详细信息
特征边
特征边是指具有以下任一属性的三角剖分边:
该边只属于一个三角形。
边缘由两个以上的三角形共享。
边缘由角偏差大于角
theta
的一对三角形共享。
F
是两列矩阵,其行对应于特征边。每行的第一个元素是起始边顶点的标识号,第二个元素是终止边顶点的标识号。顶点标识是 Points
属性中对应顶点的行号。
扩展功能
基于线程的环境
使用 MATLAB® backgroundPool
在后台运行代码或使用 Parallel Computing Toolbox™ ThreadPool
加快代码运行速度。
版本历史记录
在 R2013a 中推出
另请参阅
MATLAB 命令
您点击的链接对应于以下 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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)