ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
squareSurface(
string string string [string]
, [caching=boolean], [constructionHistory=boolean], [continuityType1=int], [continuityType2=int], [continuityType3=int], [continuityType4=int], [curveFitCheckpoints=int], [endPointTolerance=linear], [name=string], [nodeState=int], [object=boolean], [polygon=int], [rebuildCurve1=boolean], [rebuildCurve2=boolean], [rebuildCurve3=boolean], [rebuildCurve4=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
squareSurface は、取り消し可能、照会可能、および編集可能です。
このコマンドは、3 つまたは 4 つのカーブによる正方形サーフェスを生成します。この正方形サーフェスは、選択したカーブの交差する領域に作成されます。選択の順番は重要です。また、カーブは交差するか、終端がつながっている必要があります。
選択した各カーブに対して、1 つの連続性タイプ フラグを指定する必要があります。連続性タイプが 1 (固定、接線連続性なし)の場合、curveFitCheckpoints (cfc)フラグは必要ありません。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
boundary, doubleProfileBirailSurface, loft
caching, constructionHistory, continuityType1, continuityType2, continuityType3, continuityType4, curveFitCheckpoints, endPointTolerance, name, nodeState, object, polygon, rebuildCurve1, rebuildCurve2, rebuildCurve3, rebuildCurve4
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# Creating square surfaces with three curves and fixed continuity type:
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=( (8, 0, 3), (9, 3, 2), (11, 3, 1), (8, 0, -4)) )
# These curves form a rough triangle shape pointing at the origin.
cmds.squareSurface( crv3, crv1, crv2, ct1=1, ct2=1, ct3=1 )
# Creating square surfaces with four curves, tangent continuity
# type and to use 6 points per span in checking the continuity:
crv1 = cmds.curve( d=3, p=( (-2, 0, 4), (-2, 0, 5), (1, 0, 3), (3, 0, 4), (6, 0, 5) ) )
crv2 = cmds.curve( d=3, p=( (6, 0, 5), (8, 0, 2), (8, 0, -3), (7, 0, -4 ) ) )
crv3 = cmds.curve( d=3, p=( (7, 0, -4), (2, 0, -3), (-1, 0, -5), (-2, 0, -4) ) )
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.
cmds.squareSurface( crv1, crv2, crv3, crv4, cfc=6, ct1=2, ct2=2, ct3=2, ct4=2 )