polygonDecomposition
Syntax
Description
decomposes a polygon into a set of nonoverlapping polygons whose union is equivalent to the
original polygon using the boustrophedon decomposition algorithm. The output polygons have
convex edges or vertical left and right edges, enabling you to sweep the entirety of the
original polygon in a single pass using a vertical sweeping pattern.polySet
= polygonDecomposition(poly
)
[___,
additionally specifies decomposition algorithm options, and returns any combination of
output arguments from previous syntaxes. To return a connectivity graph of the
nonoverlapping polygons from the decomposition as a field in the
solnInfo
] = polygonDecomposition(poly
,options
)solnInfo
output argument, the ReturnConnectivity
property of options
must be true
or
1
.
Examples
Input Arguments
Output Arguments
References
[1] Choset, Howie. "Coverage of Known Spaces: The Boustrophedon Cellular Decomposition." Autonomous Robots 9, no.3 (2000): 247–53. https://doi.org/10.1023/A:1008958800904.
Extended Capabilities
Version History
Introduced in R2025a