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일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Polygonal Shapes에 대해 자세히 알아보기

질문:

2022년 4월 8일

편집:

2022년 4월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by