Contenu principal

Formes polygonales

Créer et manipuler des polygones et des formes polygonales

À partir d’un ensemble de points 2D donné ou d’une triangulation 2D, il est possible de créer un polygone ou une forme polygonale 2D. Les polygones sont des formes 2D fermées avec des arêtes droites sans trou, discontinuité ni chevauchement. Les formes polygonales ont elles aussi des arêtes droites mais peuvent comporter des trous, des discontinuités et des chevauchements. Les polygones sont un sous-ensemble des formes polygonales.

Pour représenter une forme polygonale, créez un objet polyshape. Utilisez ensuite les fonctions d’objet pour modifier, interroger, combiner et tracer un polygone ou une forme polygonale.

Pour plus d’informations sur les tracés de formes polygonales, consultez Polygones.

Objets

polyshapeRepresent 2-D polygonal shapes

Fonctions

développer tout

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