plotMonotonicity
Description
The plotMonotonicity function plots a polygon specified as a
polyshape object, and its monotonic intervals. The concave regions of a
polyshape determine where the polygon is monotonic, so
plotMonotonicity displays these intervals, offset by positive 90
degrees, so that they align with the concave regions that define them. This alignment helps
clarify how the geometry of the polygon influences its monotonicity.
Visualizing monotonicity is especially helpful when planning sweep-based coverage of
regions using the polygonSweep function. In a sweep, the sweep direction
refers to the direction of motion, while the sweep lines are oriented positive 90 degrees from
that direction. Because plotMonotonicity displays the monotonic intervals
with this same positive 90° offset, you can interpret the plotted intervals as the valid
sweep-line angles. Then, you can infer the corresponding valid sweep angles and directions.
The figure illustrates how these intervals relate to the sweep angles and the resulting sweep
path, assuming a back-and-forth (boustrophedon) pattern.
For more information about polygon monotonicity, see the Monotonicity section of the
polygonMonotonicity function.
plotMonotonicity( plots the specified
polygon and the first monotonic interval within a concave region of it.poly)
plotMonotonicity(
specifies plot options using one or more name-value arguments. For example
poly,Name=Value)Intervals="all" plots all of the monotonic intervals for each region of
the polygon.
returns the handles of the plotted visuals using any combination of input arguments from
previous syntaxes.hVis = plotMonotonicity(___)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2026a

