Gypaets/polygonAdja​cencyMatrix

Version 1.0.0.0 (1,94 KB) von Gypaets
Polygon adjacency matrix calculation for triangulations using MATLAB.
52 Downloads
Aktualisiert 29. Jun 2017

% 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

Zitieren als

Gypaets (2024). Gypaets/polygonAdjacencyMatrix (https://github.com/Gypaets/polygonAdjacencyMatrix), GitHub. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2015b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Delaunay Triangulation finden Sie in Help Center und MATLAB Answers
Tags Tags hinzufügen

Community Treasure Hunt

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

Start Hunting!

Versionen, die den GitHub-Standardzweig verwenden, können nicht heruntergeladen werden

Version Veröffentlicht Versionshinweise
1.0.0.0

Repo update.

Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.
Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.