ヘルプ センターヘルプ センター
2 つの頂点がエッジで連結されているかどうかをテスト
TF = isConnected(TR,startID,endID)
TF = isConnected(TR,E)
例
TF = isConnected(TR,startID,endID) は logical 列ベクトルを返し、その要素は、指定した開始頂点と終了頂点のペアがエッジで連結されている場合に 1 (true) になります。startID と endID は始点と終点でエッジを指定し、各点は TR.Points の行番号で表されます。戻り値 ID は、三角形を ID 番号で示します。
TF
TR
startID
endID
logical
true
TR.Points
ID
TF = isConnected(TR,E) は、2 列の行列 E のエッジの開始頂点 ID と終了頂点 ID を指定します。
E
すべて折りたたむ
2 次元の三角形分割を読み込みます。
load trimesh2d TR = triangulation(tri,x,y);
頂点 3 と 117 がエッジによって連結されているかどうかを判定します。
3
117
TF = isConnected(TR,3,117)
TF = logical 1
頂点 3 と 164 がエッジによって連結されているかどうかを判定します。
164
TF = isConnected(TR,3,164)
TF = logical 0
3 次元 Delaunay 三角形分割を作成します。
rng default; X = rand([10,3]); DT = delaunayTriangulation(X);
頂点 2 と 7 がエッジで連結されているかどうか、および頂点 4 と 9 が連結されているかどうかを判定します。
2
7
E = [2 7; 4 9]; TF = isConnected(DT,E)
TF = 2x1 logical array 0 1
三角形分割の表現。スカラー triangulation オブジェクトまたは delaunayTriangulation オブジェクトとして指定します。
triangulation
delaunayTriangulation
データ型: triangulation | delaunayTriangulation
各エッジの開始頂点 ID。列ベクトルとして指定します。頂点 ID 番号は、その頂点に対応する Points プロパティの行番号です。
Points
データ型: double
double
各エッジの終了頂点 ID。列ベクトルとして指定します。頂点 ID 番号は、その頂点に対応する Points プロパティの行番号です。
エッジ行列。2 列の行列として指定します。各行には、エッジの開始頂点 ID と終了頂点 ID が含まれます。頂点 ID 番号は、その頂点に対応する Points プロパティの行番号です。
backgroundPool
ThreadPool
R2013a で導入
edges | edgeAttachments | delaunayTriangulation | triangulation
edges
edgeAttachments
次の 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office