polygonSweep
Syntax
Description
The polygonSweep function generates a path for a sweep tool
to follow to cover a polygon. For concave polygons, use the
polygonMonotonicity and plotMonotonicity functions
to identify and visualize the valid sweep angle intervals of the polygon.
This figure shows an example of path generated for a concave polygon along the sweep
direction, defined by a sweep angle of 0 degrees. For more information about identifying valid
sweep angles, see the Monotonicity section of the
polygonMonotonicity function. Note that the sweep angle refers to the
angle of the sweep direction, not the lines of the sweep path.

[___,
returns additional information about the sweep path solution using any combination of input
arguments from previous syntaxes..solnInfo] = polygonSweep(___)
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2026a

