Polygon Expansion within Bounding Box

I was looking to write a script where a 2D-bounding box is defined and multiple 2D-polygons are placed within. Over time the polygon vertices expand outward to fill the space of the bounding box. No polygon vertices may overlap with other polygon verticies and no vertices may extend outside the bounding box. My thought was to use polyshape with some conditions to not allow vertices to intersect. However, I couldn't quite figure out how the to solve how many verticies would be needed for the shape to expand properly.
Are there any built in functions that might help with this objective? Other than polyshape's natural variables, I wasn't sure how to start thinking about this project.
Thanks

Respuestas (1)

Matt J
Matt J el 8 de Abr. de 2022
Editada: Matt J el 8 de Abr. de 2022

0 votos

You might be able to use polybuffer() or scale() to expand the polygons together with intersect() to detect illegal intersections.

Categorías

Preguntada:

el 8 de Abr. de 2022

Editada:

el 8 de Abr. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by