voronoiDiagram
Delaunay 三角形分割のボロノイ線図
説明
例
2 次元 Delaunay 三角形分割
2 次元 Delaunay 三角形分割のボロノイ頂点とボロノイ領域を計算します。
一連の 2 次元の点から Delaunay 三角形分割を作成します。
P = [ 0.5 0 0 0.5 -0.5 -0.5 -0.2 -0.1 -0.1 0.1 0.1 -0.1 0.1 0.1 ]; DT = delaunayTriangulation(P);
ボロノイ頂点とボロノイ領域を計算します。
[V,r] = voronoiDiagram(DT);
三角形分割の 3 番目の点に関連付けられたボロノイ領域の連結を表示します。
r{3}
ans = 1×4
1 6 10 3
3 番目の領域の境界となるボロノイ頂点の座標を表示します。Inf
値は、領域に凸包上の点が含まれていることを示します。
V(r{3},:)
ans = 4×2
Inf Inf
0.7000 -1.6500
-0.0500 -0.5250
-1.7500 0.7500
入力引数
DT
— Delaunay 三角形分割
スカラー
Delaunay 三角形分割。スカラーの delaunayTriangulation
オブジェクトとして指定します。
データ型: delaunayTriangulation
出力引数
V
— ボロノイ頂点
行列
ボロノイ頂点。2 列の行列 (2 次元) または 3 列の行列 (3 次元) として返されます。V
の各行は、ボロノイ頂点の座標を含んでいます。
三角形分割の頂点の凸包上にある点に関連するボロノイ領域は非有界です。これらの領域のエッジを囲むと無限に広がります。V
の最初の頂点は、その頂点が無限大の位置にあることを表し、Inf
で示されます。
データ型: double
r
— ボロノイ領域
cell 配列
ボロノイ領域。cell 配列として返され、その要素には V
内のボロノイ頂点の連結が含まれます。r
の各行の点は、Points
プロパティ内の対応する行に関連する境界領域を形成します。
データ型: double
拡張機能
スレッドベースの環境
MATLAB® の backgroundPool
を使用してバックグラウンドでコードを実行するか、Parallel Computing Toolbox™ の ThreadPool
を使用してコードを高速化します。
バージョン履歴
R2013a で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)