polygonMonotonicity
Find sweep directions that enable efficient, backtrack-free coverage of a polygon
Since R2026a
Syntax
Description
The polygonMonotonicity function analyzes a 2-D polygon and
computes sweep directions that result in monotonic coverage of each region. A sweep direction
is monotonic if a sweep line moving in that direction can cover the entire region without
backtracking. Use this function to identify efficient sweep directions for use with the
polygonSweep
function.
For more information on polygon monotonicity, see Monotonicity. To visualize monotonic
intervals, use the plotMonotonicity
function.
[
finds monotonic angle intervals for the regions in the specified polygon
isMonotonic,monotonicIntervals] = polygonMonotonicity(poly)poly. The function returns the first monotonic angle interval it
finds for each region. isMonotonic indicates whether the regions have
any monotonic intervals.
[
specifies whether to return only the first monotonic interval, or all of the monotonic angle
intervals for each region.isMonotonic,monotonicIntervals] = polygonMonotonicity(poly,Intervals=intervals)
Examples
Input Arguments
Output Arguments
More About
Extended Capabilities
Version History
Introduced in R2026a




