Main Content

convhull

説明

polyout = convhull(polyin)polyshape オブジェクトの凸包を返します。polyoutpolyshape オブジェクト、または polyin と同じサイズの polyshape オブジェクトの配列です。

すべて折りたたむ

3 つの固体領域をもつ多角形の凸包を計算します。

x1 = [0 1 2];
y1 = [0 1 0];
x2 = [2 3 4];
y2 = [1 2 1];
x3 = [0 0.5 0.5 0];
y3 = [2 2 2.5 2.5];
polyin = polyshape({x1,x2,x3},{y1,y2,y3});
plot(polyin)
hold on
polyout = convhull(polyin);
plot(polyout)

Figure contains an axes object. The axes object contains 2 objects of type polygon.

入力引数

すべて折りたたむ

入力 polyshape。スカラー、ベクトル、行列または多次元配列として指定します。

データ型: polyshape

拡張機能

バージョン履歴

R2017b で導入