Gypaets/polygonAdja​cencyMatrix

Version 1.0.0.0 (1,94 ko) par Gypaets
Polygon adjacency matrix calculation for triangulations using MATLAB.
52 téléchargements
Mise à jour 29 juin 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

Citation pour cette source

Gypaets (2024). Gypaets/polygonAdjacencyMatrix (https://github.com/Gypaets/polygonAdjacencyMatrix), GitHub. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2015b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Delaunay Triangulation dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

Les versions qui utilisent la branche GitHub par défaut ne peuvent pas être téléchargées

Version Publié le Notes de version
1.0.0.0

Repo update.

Pour consulter ou signaler des problèmes liés à ce module complémentaire GitHub, accédez au dépôt GitHub.
Pour consulter ou signaler des problèmes liés à ce module complémentaire GitHub, accédez au dépôt GitHub.