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

回答(1 个)

Matt J
Matt J 2022-4-8
编辑:Matt J 2022-4-8
You might be able to use polybuffer() or scale() to expand the polygons together with intersect() to detect illegal intersections.

类别

在 帮助中心 和 File Exchange 中查找有关 Polygonal Shapes 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by