isWatertight
説明
例
表面メッシュが水密かどうかのチェック
表面メッシュのメッシュ頂点とメッシュ面を定義します。
vertices = [1 -1 1; 1 1 1; -1 1 1; -1 -1 1; ... 1 -1 -1; 1 1 -1; -1 1 -1; -1 -1 -1]; faces = [6 2 1; 1 5 6; 8 4 3; 3 7 8; 6 7 3; 3 2 6; ... 5 1 4; 4 8 5; 4 1 2; 2 3 4; 7 6 5; 5 8 7];
表面メッシュを作成して表示します。
mesh = surfaceMesh(vertices,faces);
surfaceMeshShow(mesh,Title="Input Mesh")
メッシュが水密かどうかをチェックします。
TF = isWatertight(mesh)
TF = logical
1
入力引数
mesh
— 表面メッシュ
surfaceMesh
オブジェクト
表面メッシュ。surfaceMesh
オブジェクトとして指定します。
出力引数
TF
— 表面メッシュが水密かどうか
0
| 1
表面メッシュが水密かどうか。logical 0
(false
) または 1
(true
) として返されます。メッシュが水密である場合、この関数は true
を返します。それ以外の場合は、false
を返します。
バージョン履歴
R2022b で導入
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)