Azzera filtri
Azzera filtri

How to find a concentric irregular polygon

4 visualizzazioni (ultimi 30 giorni)
Matteo Nicoletta
Matteo Nicoletta il 1 Mar 2022
Risposto: Image Analyst il 7 Set 2023
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?

Risposte (1)

Image Analyst
Image Analyst il 7 Set 2023
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.

Categorie

Scopri di più su Computational Geometry in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by