移動先: 概要 戻り値 関連項目. フラグ. 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
ロング ネーム(ショート ネーム) |
引数型 |
プロパティ |
order(order)
|
boolean
|
 
|
|
カーブの順序が重要な場合は true です。 デフォルト: true
|
|
endPoint(ep)
|
boolean
|
 
|
|
true は、サーフェスが作成される前にカーブの終端が接している必要があるという意味です。 デフォルト: false
|
|
endPointTolerance(ept)
|
linear
|
 
|
|
endPoint アトリビュートが true の場合のみ使用される、終点の許容値です。 デフォルト: 0.1
|
|
高度なフラグ |
caching(cch)
|
boolean
|
 
|
|
ノード キャッシング モードを修正します。詳細については、ノードの説明を参照してください。 注: 上級ユーザ向けの機能です。
|
|
nodeState(nds)
|
int
|
 
|
|
ノード状態を修正します。詳細については、ノードの説明を参照してください。 注: 上級ユーザ向けの機能です。
|
|
一般的なフラグ |
name(n)
|
string
|
|
|
constructionHistory(ch)
|
boolean
|
|
|
コンストラクション ヒストリをオンまたはオフにします。
|
|
object(o)
|
boolean
|
|
|
結果のオブジェクト、またはディペンデンシー ノードのみを作成します。
|
|
polygon(po)
|
int
|
|
|
この引数の値は、この操作で作成されるオブジェクトの
タイプを制御します。
- 0: NURBS サーフェス
- 1: ポリゴン(nurbsToPolygonsPref を使用して変換用のパラメータを設定)
- 2: サブディビジョン サーフェス(nurbsToSubdivPref を使用して変換用のパラメータを設定)
- 3: ベジェ サーフェス
- 4: サブディビジョン サーフェス ソリッド
(変換のためのパラメータを設定するには、nurbsToSubdivPref を使用)
|
|
range(rn)
|
boolean
|
|
|
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: タプルまたはリストとして渡された複数の引数を持てるフラグ
|
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 )