How to find a concentric irregular polygon
4 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
How can I find a new set of points which compose a concentric polygon, inside the original one (in the picture), with a given distance from it? ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/910920/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/910920/image.png)
0 个评论
回答(1 个)
Image Analyst
2023-9-7
I'd just find the centroid of the shape, then run around the perimeter finding the distance to the centroid. Then use normal trig functions to shorten that distance and get new (x,y) coordinates.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computational Geometry 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!