Group.ExpandedMembers

Group.ExpandedMembers

導入

v5.0

詳細

グループおよびブランチメンバの子の各 SceneItem オブジェクトを含む SceneItemCollection を戻します。

C#構文

// get accessor

SceneItemCollection rtn = Group.ExpandedMembers;

JScript の例

NewScene(null, false );

var a = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface", "A");

a.length.value = 2;

var b = a.AddGeometry("Cube", "MeshSurface", "B");

b.length.value = 2;

Translate( b, 5 );

var c = b.AddGeometry("Cube", "MeshSurface", "C");

c.length.value = 2;

Translate( c, 5 );

// create group

var group = ActiveSceneRoot.AddGroup();

// add members to group

group.AddMember( a, true );

group.AddMember( b, false );

logmessage( "Expanded group members = " + group.ExpandedMembers.GetAsText() );

//INFO : Expanded group members = A,B,C

関連項目

Group.IsMember Group.Members