New Polygon Clipping and Offsetting

版本 1.0.2.0 (13.5 KB) 作者: Erik Johnson
Polygon Clipping and Offsetting
1.2K 次下载
更新时间 2017/2/9

查看许可证

Provide a front end to Angus Johnson's polygon clipping and offsetting algorithms.
Two functions are provided:
* polyclip(x1,y1,x2,y2,method) finds the difference/intersection/xor/union (depending on "method") between two polygons
* polyout(x1,y1,delta,join,joininfo) outsets a polygon by distance delta, using the given corner join method (and optional joininfo specifying more details about the corner) [corner is 'round' or 'square' or 'miter']. Insetting is accomplished with a negative delta.
See the README.txt file for where to download Angus Johnson's clipper C++ code and for compiling instructions.

引用格式

Erik Johnson (2024). New Polygon Clipping and Offsetting (https://www.mathworks.com/matlabcentral/fileexchange/61329-new-polygon-clipping-and-offsetting), MATLAB Central File Exchange. 检索时间: .

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

参考作品: Polygon Clipping and Offsetting

Community Treasure Hunt

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

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

Minor bug fixes (correct string specification of join type in polyclip; fix single-output calling methods of polyout and polyclip).

1.0.1.0

Added screenshot, slight updated to documentation.

1.0.0.0