Gypaets/polygonAdja​cencyMatrix

版本 1.0.0.0 (1.9 KB) 作者: Gypaets
Polygon adjacency matrix calculation for triangulations using MATLAB.
52.0 次下载
更新时间 2017/6/29

% Definition
polygonAdjacencyMatrix calculates the adjacency matrix of the polygons
defined with a triangulation's connectivity list cL. Fast and fully
vectorized approach.
% Usage
Input:
cL: (n x 3) connectivity list of the triangulation.

Output:
pAM: (n x n) polygon adjacency matrix.
% Example
% Create triangulation from 100000 random points
pointsC=rand(100000,2);
X=pointsC(:,1);
Y=pointsC(:,2);
tri=delaunayTriangulation(X,Y);
% Extract connectivity list
cL=tri.ConnectivityList;
% Calculate polygon adjacency matrix
tic
pAM = polygonAdjacencyMatrix(cL);
toc

引用格式

Gypaets (2024). Gypaets/polygonAdjacencyMatrix (https://github.com/Gypaets/polygonAdjacencyMatrix), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Delaunay Triangulation 的更多信息
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.0.0.0

Repo update.

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库