Polygon Expansion within Bounding Box
Show older comments
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
Answers (1)
You might be able to use polybuffer() or scale() to expand the polygons together with intersect() to detect illegal intersections.
Categories
Find more on Polygonal Shapes in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!