Contenido principal

Formas poligonales

Cree y manipule polígonos y formas poligonales

Dados un conjunto de puntos 2D o una triangulación 2D, puede crear un polígono o una forma poligonal 2D. Los polígonos son formas 2D cerradas con aristas rectas y sin agujeros, discontinuidades ni superposiciones. Las formas poligonales también son formas con aristas rectas, pero pueden tener agujeros, discontinuidades y superposiciones. Los polígonos son un subconjunto de formas poligonales.

Represente una forma poligonal creando un objeto polyshape. Después, modifique, consulte, combine y represente un polígono o una forma poligonal utilizando funciones de objeto.

Para obtener más información acerca de la representación de formas poligonales, consulte Polígonos.

Objetos

polyshapeRepresent 2-D polygonal shapes

Funciones

expandir todo

polyshapeRepresent 2-D polygonal shapes
boundaryshapeCreate polyshape from 2-D triangulation
nsidedpolyCreate polyshape representing regular polygon with n sides
addboundaryAdd polyshape boundary
rmboundaryRemove polyshape boundary
rmsliversRemove polyshape boundary outliers
rmholesRemove holes in polyshape
simplifySimplify polyshape boundaries
polybufferCreate buffer around points, lines, or polyshape objects
sortboundariesSort polyshape boundaries
sortregionsSort polyshape regions
rotateRotate polyshape
scaleScale polyshape
translateTranslate polyshape
boundaryFind vertex coordinates of polyshape boundary
holesConvert polyshape hole boundaries to array of polyshape objects
isholeDetermine if polyshape boundary is a hole
isinteriorQuery points inside polyshape
issimplifiedDetermine if polyshape is well-defined
nearestvertexQuery nearest polyshape vertex
numboundariesFind number of polyshape boundaries
numsidesFind number of polyshape sides
overlapsDetermine whether polyshape objects overlap
plotRepresentar gráficamente polyshape
regionsAccess polyshape regions
areaCompute area of polyshape
perimeterCompute perimeter of polyshape
turningdistCompute turning distance between polyshape objects
boundingboxFind bounding box of polyshape
centroidFind centroid of polyshape
convhullFind convex hull of polyshape
triangulationTriangular polyshape
intersectIntersection of polyshape objects or intersection of line segment with polyshape
subtractDifference of two polyshape objects
unionUnion of polyshape objects
xorExclusive OR of two polyshape objects
polyareaCalcular el área de un polígono
rectintFind rectangle intersection area
inpolygonFind points located inside or on edge of polygon