UnfoldApply

導入

v7.5

カテゴリ

展開

詳細

指定したオブジェクトやグループにUnfold Propertyを適用します。

スクリプト構文

oBoolean = UnfoldApply( [Object(s) and/or group(s)] );

戻り値

コマンドが成功したかどうかをレポートするブールを戻します。

パラメータ

パラメータ タイプ 詳細
object(s)と group(s)の両方または一方 X3DObject および Group オブジェクトのコレクション UnfoldPropertyを適用するオブジェクトX3DObject は「polymsh」タイプにする必要があります。

デフォルト値:指定されていない場合は、現在の選択が使用されます。

1. JScript の例

/*
        This example demonstrates how to apply an Unfold property to a simple grid
*/
NewScene(null, false);
var oGrid = CreatePrim("Grid", "MeshSurface");
// Apply the Unfold property to the grid (no computation process are launched)
UnfoldApply(oGrid);

2. Python の例

#
# This example demonstrates how to apply an Unfold property to a group
# consisting of a grid and a sphere
# 
app = Application
app.NewScene("", False)
oGrid = app.CreatePrim("Grid", "MeshSurface")
app.CreatePrim("Sphere", "MeshSurface")
app.Selection.Add(oGrid) # add grid to selection for CreateGroup command
oGroup = app.CreateGroup()
# Apply the Unfold property to the Group (no computation process are launched)
app.UnfoldApply(oGroup)

関連項目

UnfoldAddToCut UnfoldAdjustUpdate UnfoldApplySel UnfoldClearCut UnfoldPackUpdate UnfoldRemoveFromCut UnfoldSelectCut UnfoldSetCut UnfoldUpdate Unfold Property Editor reference