v2.0
property
YZ 平面、XZ 平面、またはXY 平面と平行なシンメトリマップである ClusterProperty を作成します。 シンメトリ マップを作成すると、一方の側のポイントを移動させるたびに、シンメトリ マップの対応するポイントも移動します。
oReturn = CreateSymmetryMap( PresetObj, [InputObj], [Name], [PropPresetObj] ); |
シンメトリ マップのコレクションを戻します。
| パラメータ | タイプ | 詳細 | ||||
|---|---|---|---|---|---|---|
| PresetObj | 文字列またはプリセット オブジェクト(SIGetPreset から取得されたオブジェクトなど) | SymmetryMap オペレータ プリセット
デフォルト値: "SymmetryMap"
|
||||
| InputObj | 文字列 | クラスタ、オブジェクト、またはポイント クラスタのリスト
デフォルト値: 現在選択されている値 |
||||
| Name | 文字列 | シンメトリ マップ プロパティの名前
デフォルト値: "Symmetry Map" |
||||
| PropPresetObj | プリセット オブジェクト | Symmetry Map Property プリセット
デフォルト値: "Symmetry Map Property" プリセット |
'
' This example sets up a symmetry map on a sphere and then moves some
' points on one side only with their corresponding points on the other
' side moving symmetrically.
NewScene
' Create a sphere to apply the symmetry map to
Set oSphere = CreatePrim( "Sphere", "NurbsSurface", "MySphere" )
' Create a symmetry map on the sphere (note how we do not need to specify the
' preset name of "SymmetryMap" for the first argument, since it is the default)
Set oMaps = CreateSymmetryMap( , oSphere, "MySymmetryMap" )
' Log the name of the returned maps. Here only one.
LogMessage "Created Map: " & oMaps(0)
' Output information of running this script
'INFO : sphere.polymsh.cls.SymmetryMapCls.MySymmetryMap
' Move some control points on one side only.
Translate oSphere & ".pnt[(0,7)]", -1.90216784318022, 0, 0, _
siRelative, siViewSym, siObj, siXYZ
Translate oSphere & ".pnt[(0,3)]", -4.39465725765814, 0, 0, _
siRelative, siViewSym, siObj, siXYZ
Translate oSphere & ".pnt[(0,4)]", -1.60751873190734, 0, 0, _
siRelative, siViewSym, siObj, siXYZ
Translate oSphere & ".pnt[(0,8)]", -0.714956303285471, 0, 0, _
siRelative, siViewSym, siObj, siXYZ
Translate oSphere & ".pnt[(7,5)]", -0.570702900944422, 0, 0, _
siRelative, siViewSym, siObj, siXYZ
' Make the symmetry map visible in the camera view.
' This is equivalent to setting the "Property Maps" visibility option.
' Symmetrical areas map red->blue.
' Self symmetrical areas are green.
SetValue "Camera.camvis.objctrlpropmaps", true
SetDisplayMode "Camera", "constant"
|