triangulation
polyshape
の三角形分割
説明
T = triangulation(
は、polyin
)polyshape
オブジェクトの 2 次元 triangulation
オブジェクトを返します。T
には、polyin
を構成する三角形の頂点と連結性を表すプロパティがあります。詳細については、triangulation
を参照してください。
例
多角形の三角形分割
多角形を作成して、三角形分割します。
t = 0.05:0.5:2*pi; x1 = cos(t); y1 = sin(t); x2 = 0.5*cos(t); y2 = 0.5*sin(t); polyin = polyshape({x1,x2},{y1,y2})
polyin = polyshape with properties: Vertices: [27x2 double] NumRegions: 1 NumHoles: 1
plot(polyin)
T = triangulation(polyin)
T = triangulation with properties: Points: [26x2 double] ConnectivityList: [26x3 double]
triplot(T)
入力引数
polyin
— 入力 polyshape
スカラー
入力 polyshape
。スカラーとして指定します。
データ型: polyshape
バージョン履歴
R2017b で導入
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)