# Polígonos elementales

Funciones poligonales

Dado un conjunto de puntos, puede crear polígonos simples y calcular cantidades geométricas básicas como el área. Para crear polígonos más complejos o acceder a más información geométrica, cree un objeto `polyshape`. Después, utilice las funciones del objeto para modificar, consultar y visualizar el polígono o el conjunto de polígonos.

## Funciones

expandir todo

 `boundaryshape` Create `polyshape` from 2-D triangulation `inpolygon` Points located inside or on edge of polygonal region `nsidedpoly` Regular polygon `polyarea` Área de un polígono `polybuffer` Create buffer around points, lines, or `polyshape` objects `rectint` Rectangle intersection area

#### Crear y modificar objeto 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`

#### Consultar y visualizar

 `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

 `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`
 `intersect` Intersection of `polyshape` objects `subtract` Difference of two `polyshape` objects `union` Union of `polyshape` objects `xor` Exclusive OR of two `polyshape` objects