Have matlab implemented a polygon offset function?

15 ビュー (過去 30 日間)
Patrik Ek
Patrik Ek 2015 年 6 月 12 日
回答済み: Mikolaj Wilczynski 2018 年 1 月 4 日
Hi,
This question have been circulation on the Internet for a while and I think it is time to ask the question again. Many people have been looking for a polygon offset algorithm in matlab and there are some good ones which can be mexed, for example this file exchange. I wonder, since this seems to be a popular issue, have matlab implemented any offset algorithm in any toolbox yet? Mex is of course good, but the multiplatform as well as compatibility can be a problem.
  1 件のコメント
Patrik Forssén
Patrik Forssén 2015 年 6 月 30 日
The function bufferm in Mapping Toolbox does polygon offsetting: http://se.mathworks.com/help/map/ref/bufferm.html

サインインしてコメントする。

採用された回答

Steven Lord
Steven Lord 2018 年 1 月 4 日
Mikolaj: the bufferm function still exists in Mapping Toolbox. It's possible you think it's no longer available because you don't have that toolbox installed.
In release R2017b we introduced in MATLAB the polyshape function. You can use the polybuffer function on a polyshape, and I believe that will do what you want.

その他の回答 (2 件)

Mikolaj Wilczynski
Mikolaj Wilczynski 2018 年 1 月 4 日
Function bufferm() is no longer avaiable (from R2017b). Any ideas fow to offset polygon now?

Mikolaj Wilczynski
Mikolaj Wilczynski 2018 年 1 月 4 日
Dear Steven,
you are certainly right. I have found polybuffer function a few minutes ago while reading whole polyshape toolbox (R2017b\toolbox\matlab\polyfun\@polyshape). This toolbox is exactly what I need!
But what is a pity thing, that my university does not provide R2017b.

カテゴリ

Help Center および File ExchangeElementary Polygons についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by