Contenuto principale

Forme poligonali

Creare e manipolare poligoni e forme poligonali

Dato un insieme di punti bidimensionali o una triangolazione bidimensionale, è possibile creare un poligono o una forma poligonale bidimensionale. I poligoni sono forme bidimensionali chiuse con lati rettilinei e senza fori, discontinuità o sovrapposizioni. Anche le forme poligonali sono forme con lati rettilinei, ma possono presentare fori, discontinuità e sovrapposizioni. I poligoni sono un sottoinsieme delle forme poligonali.

Rappresentare una forma poligonale creando un oggetto polyshape. Quindi modificare, eseguire query, combinare e tracciare un poligono o una forma poligonale utilizzando le funzioni oggetto.

Per maggiori informazioni sul plottaggio delle forme poligonali, vedere Poligoni.

Oggetti

polyshapeRepresent 2-D polygonal shapes

Funzioni

espandi tutto

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
plotPlot 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
triangulationTriangulate 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
polyareaCompute area of polygon
rectintFind rectangle intersection area
inpolygonFind points located inside or on edge of polygon