ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
boundary(
string string string [string]
, [caching=boolean], [constructionHistory=boolean], [endPoint=boolean], [endPointTolerance=linear], [name=string], [nodeState=int], [object=boolean], [order=boolean], [polygon=int], [range=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
boundary は、取り消し可能、照会可能、および編集可能です。
このコマンドは、3 つまたは 4 つのカーブが指定した境界サーフェスを生成します。作成される境界サーフェスは 1 つの方向に指定した 2 つのカーブを通過します。残ったカーブによってシェイプを別の方向に定義します。「endPoint」オプションがオンの場合、カーブの終点はサーフェスが作成される前に接している必要があります。これは、境界サーフェスが便利なケースです。
このコマンドには接線連続性のオプションはないということに注意してください。カーブの終点がすべて接していない限り、作成されるサーフェスはすべてのカーブを通過しません。代わりに、birail コマンドを使用します。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
doubleProfileBirailSurface, loft, squareSurface
caching, constructionHistory, endPoint, endPointTolerance, name, nodeState, object, order, polygon, range
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# Creating boundary surfaces with three curves:
crv1 = cmds.curve(d= 3, p= ((8, 0, 3), (5, 0, 3), (2, 0, 2), (0, 0, 0)) )
crv2 = cmds.curve(d= 3, p= ((8, 0, -4), (5, 0, -3), (2, 0, -2), (0, 0, 0)) )
crv3 = cmds.curve(d= 3, p= ((10, 0, 3), (9, 3, 2), (11, 3, 1), (9, 0, -3)) )
# These curves form a rough triangle shape pointing at the origin.
# If order is OFF, then the apex of the surface will always between
# the 1st and 2nd curves.
cmds.boundary( crv3, crv1, crv2, order=False, ep=0 )
cmds.boundary( crv3, crv2, crv1, order=False, ep=0 )
# If order is ON, then think of the order of selection as "rail, rail, profile"
# where the boundary is formed by sweeping the profile along two rails.
# Direction of the curves becomes important as well; use the reverseCurve
# command if you want to change a curve's direction.
cmds.boundary( crv1, crv2, crv3, order=True )
# Creating boundary surfaces with four curves:
crv1 = cmds.curve(d= 3, p=((-2, 0, 5), (-1, 0, 3), (1, 0, 3), (3, 0, 4), (6, 0, 5)) )
crv2 = cmds.curve(d= 3, p=(( 7, 0, 4), (8, 0, 2), (8, 0, -3), (7, 0, -4)) )
crv3 = cmds.curve(d= 3, p=(( 6, 0, -5), (2, 0, -3), (1, 0, -5), (-3, 0, -5)) )
crv4 = cmds.curve(d= 3, p=((-2, 0, 4), (-4, 0, 1), (-4, 0, -3), (-2, 0, -4)) )
# These curves form a rough square shape around the origin.
# To make a boundary surface from four curves, two of the curves are
# "rails" while the other two are "profiles".
cmds.boundary( crv1, crv2, crv3, crv4, order=False, ep=0 )
cmds.boundary( crv2, crv3, crv4, crv1, order=False, ep=0 )
# profile, rail, profile, rail
# Notice that in both cases, the resulting boundary surface passes through
# the rail curves.
# When order is ON, direction of the curves becomes important;
# use the reverseCurve command if you want to change a curve's direction.
# Notice the difference between:
cmds.boundary( crv1, crv2, crv3, crv4, order=False, ep=0 )
cmds.boundary( crv1, crv2, crv3, crv4, order=True, ep=0 )