Accurate polygon extension

版本 1.5.0.0 (8.0 KB) 作者: Krispijn Scholte
Enlarges polygon by a specified range. Also generates internal polygons caused by intersections.
3.1K 次下载
更新时间 2009/1/27

查看许可证

This function extends a polygon by a specified range. It also generates internal polygons caused by intersections.

The resulting polygon does not preserve the original shape of the input polygon (see screenshot above), but represents the range specified from the input polygon.

Example of usage is given in the m-file header (or type "help extendPoly").

Credit to NS for the self intersection algorithm.

引用格式

Krispijn Scholte (2024). Accurate polygon extension (https://www.mathworks.com/matlabcentral/fileexchange/21925-accurate-polygon-extension), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Elementary Polygons 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.5.0.0

v1.5 Replaced selfintersection algorithm because it yielded inaccurate results; added user definable resolution parameter for drawing the circle pieces of the resulting polygon.

1.4.0.0

v1.5: Replaced selfintersection algorithm because it yielded inaccurate results; added user definable resolution parameter for drawing the circle pieces of the resulting polygon.

1.3.0.0

New and faster CW/CCW detection method for the input polygon. Old method returned incorrect results when the polygon points have negative x-values only.

1.2.0.0

Added a bunch error and warning messages for badly formed input. Automatically closes input polygon if not closed (warning generated).

1.1.0.0

Fixed bug in determining if input polygon is defined CW or CCW

1.0.0.0