how to use a polybuffer without changing the polygon's shape?

3 ビュー (過去 30 日間)
Sierra 2022 年 6 月 29 日
編集済み: Matt J 2022 年 6 月 30 日
I've used polybuffer. but when the d(distance) is a largen number, the buffer is someting like circle(round).
so I used sqaure too, but it retunred hexagon, not a rectangular even i made a polygon with 4 coordinates.
This is what i want. I want the polybuffer to be as same shape as a polygon.

回答 (1 件)

Matt J
Matt J 2022 年 6 月 29 日
use scale
  2 件のコメント
Matt J
Matt J 2022 年 6 月 30 日
In what way is the result "not what you wanted" and what code produced that result? If you want the expansion centered around the centroid of the polyshape, specify a 3rd argument to the scale() command.


Community Treasure Hunt

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

Start Hunting!

Translated by