How to find a concentric irregular polygon

2 ビュー (過去 30 日間)
Matteo Nicoletta
Matteo Nicoletta 2022 年 3 月 1 日
回答済み: Image Analyst 2023 年 9 月 7 日
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?

回答 (1 件)

Image Analyst
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.

カテゴリ

Help Center および File ExchangeImages についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by