Polygones élémentaires
À partir d’un ensemble de points donné, vous pouvez créer des polygones simples et calculer des quantités géométriques de base comme l’aire. Pour créer des polygones plus complexes ou accéder à des informations géométriques supplémentaires, créez un objet polyshape
. Utilisez ensuite les fonctions d’objet pour modifier, faire des requêtes et visualiser le polygone ou l’ensemble de polygones.
Fonctions
Polygones simples
boundaryshape | Create polyshape from 2-D triangulation |
inpolygon | Points located inside or on edge of polygonal region |
nsidedpoly | Regular polygon |
polyarea | Area of polygon |
polybuffer | Create buffer around points, lines, or polyshape
objects |
rectint | Rectangle intersection area |
Objet polyshape
Créer et modifier un polyshape
polyshape | 2-D polygonal shapes |
addboundary | Add polyshape boundary |
polybuffer | Create buffer around points, lines, or polyshape
objects |
rmboundary | Remove polyshape boundary |
rmholes | Remove holes in polyshape |
rmslivers | Remove polyshape boundary outliers |
rotate | Rotate polyshape |
scale | Scale polyshape |
simplify | Simplify polyshape boundaries |
sortboundaries | Sort polyshape boundaries |
sortregions | Sort polyshape regions |
translate | Translate polyshape |
Faire de requêtes et visualiser
boundary | Vertex coordinates of polyshape boundary |
holes | Convert polyshape hole boundaries to array of
polyshape objects |
ishole | Determine if polyshape boundary is a hole |
isinterior | Query points inside polyshape |
issimplified | Determine if polyshape is well-defined |
nearestvertex | Query nearest polyshape vertex |
numboundaries | Number of polyshape boundaries |
numsides | Number of polyshape sides |
overlaps | Determine whether polyshape objects overlap |
plot | Plot polyshape |
regions | Access polyshape regions |
Quantités géométriques
area | Area of polyshape |
boundingbox | Bounding box of polyshape |
centroid | Centroid of polyshape |
convhull | Convex hull of polyshape |
turningdist | Compute turning distance between polyshape
objects |
triangulation | Triangulate polyshape |
perimeter | Perimeter of polyshape |
Opérations booléennes
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes 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)