ジャンプ先: 概要. 戻り値. 関連. フラグ. MEL 例.
polyMergeVertex [-alwaysMergeTwoVertices boolean] [-caching boolean] [-constructionHistory boolean] [-distance linear] [-mergeToComponents string] [-name string] [-nodeState int] [-texture boolean] [-worldSpace boolean]
polyMergeVertex は、取り消し可能、照会可能、および編集可能です。
指定しきい値内の頂点をマージします。| string | ノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Common poly modifier operation flags | ||||||||||||
-alwaysMergeTwoVertices(-am)
|
boolean
|
|
||||||||||
|
||||||||||||
-caching(-cch)
|
boolean
|
|
||||||||||
|
||||||||||||
-constructionHistory(-ch)
|
boolean
|
|
||||||||||
|
||||||||||||
-distance(-d)
|
linear
|
|
||||||||||
|
||||||||||||
-mergeToComponents(-mtc)
|
string
|
|
||||||||||
|
||||||||||||
-name(-n)
|
string
|
|
||||||||||
|
||||||||||||
-nodeState(-nds)
|
int
|
|
||||||||||
|
||||||||||||
-texture(-tx)
|
boolean
|
|
||||||||||
|
||||||||||||
-worldSpace(-ws)
|
boolean
|
|
||||||||||
|
||||||||||||
polyPlane -sx 5 -sy 5 -n plg1;
polyPlane -sx 5 -sy 5 -n plg2;
move -ws 0.55 0 -1.25 plg1; move -ws -0.55 0 -1.25 plg2;
polyPlane -sx 5 -sy 5 -n plg3;
polyPlane -sx 5 -sy 5 -n plg4;
polyPlane -sx 5 -sy 5 -n plg5;
move -ws 0.55 0 1.25 plg4; move -ws -0.55 0 1.25 plg5;
// First method:
polyUnite plg1Shape plg2Shape;
select -r polySurface1.vtx[6] polySurface1.vtx[12]
polySurface1.vtx[18] polySurface1.vtx[24]
polySurface1.vtx[47] polySurface1.vtx[53]
polySurface1.vtx[59] polySurface1.vtx[65];
polyMergeVertex -d 0.15;
// <i>Second method</i>:
polyMergeVertex -d 0.25 plg3.vtx[24] plg3.vtx[30:31]
plg3.vtx[8:10] plg3.vtx[14:16]
plg3.vtx[20:22];
// To create non-manifold geometry:
polyUnite plg4Shape plg5Shape;
select -r polySurface2.vtx[0] polySurface2.vtx[6]
polySurface2.vtx[12] polySurface2.vtx[18]
polySurface2.vtx[24] polySurface2.vtx[30]
polySurface2.vtx[41] polySurface2.vtx[47]
polySurface2.vtx[53] polySurface2.vtx[59]
polySurface2.vtx[65] polySurface2.vtx[71];
polyMergeVertex -d 0.25;
// Note that there is only one vertex at this merged point and the
// resulting polygonal object is non-manifold;
// Merge some verts to the center of some edges
select -all; delete;
polyPlane -w 10 -h 10 -sx 10 -sy 10 -ax 0 1 0 -cuv 2 -ch 1;
select -r pPlane1.vtx[8] pPlane1.vtx[12] ;
polyMergeVertex -mergeToComponents "pPlane1.e[183] pPlane1.e[162] pPlane1.e[166] pPlane1.e[187]" -d 0.0001 -am 0 -ch 1;