Identify convex and concave parts of polygon
Version 1.0.3 (22,7 ko) par
Are Mjaavatten
c = convex([x,y]) c = 1 where the polygon curves toward the interior c = -1 where the polygon curves outwards
This function can be used to identify convex and concave parts of a polygon, such as the airfoil profile in the figure.
Thanks to Luigi Ventre who posed the problem in a comment to File Exchange entry Curvature of a 1D curve in a 2D or 3D space.
Citation pour cette source
Are Mjaavatten (2024). Identify convex and concave parts of polygon (https://www.mathworks.com/matlabcentral/fileexchange/102169-identify-convex-and-concave-parts-of-polygon), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Créé avec
R2021b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.3 | Corrected another bug in convex_demo |
||
1.0.2 | Fixed bug in convex_demo.m |
||
1.0.1 | Added demo file |
||
1.0.0 |