vrnode
Create node or handle to existing node
Syntax
mynode = vrnodemynode = vrnode([])mynode = vrnode(vrworld_object,'node_name')mynode = vrnode(vrworld_object, 'node_name','node_type')mynode = vrnode(vrworld_object, 'USE', othernode)mynode = vrnode(parent_node,'parent_field', 'node_name', 'node_type') mynode = vrnode(parent_node,'parent_field', 'USE', 'othernode')
Arguments
|
Name of a |
|
Name of the node. |
|
Type of the node. |
|
Name of the parent node that is a |
|
Name of the field of the parent node. |
|
Enables a |
|
Name of another node for a |
Description
mynode = vrnode
creates an emptyvrnode
handle that does not reference any node.
mynode = vrnode([])
创建一个空数组vrnode
handles.
mynode = vrnode(vrworld_object,'node_name')
creates a handle to an existing named node in the virtual world.
mynode = vrnode(vrworld_object, 'node_name','node_type')
creates a new node callednode_name
of typenode_type
on the root of the virtual world. It returns the handle to the newly created node.
mynode = vrnode(vrworld_object, 'USE', othernode)
creates aUSE
reference to the nodeothernode
on the root of the worldvrworld_object
. It returns the handle to the virtual world to the original node.
mynode = vrnode(parent_node,'parent_field', 'node_name','node_type')
creates a new node callednode_name
of typenode_type
that is a child of theparent_node
and resides in the fieldparent_field
. It returns the handle to the newly created node.
mynode = vrnode(parent_node,'parent_field', 'USE', 'othernode')
creates aUSE
reference to the nodeothernode
as a child of nodeparentnode
and resides in the fieldparentfield
. It returns the handle to the original node.
Avrnode
object identifies a virtual world node in a way very similar to a handle. If you apply thevrnode
method to a node that does not exist, the method creates a node, thevrnode
object, and returns the handle to thevrnode
object. If you apply thevrnode
现有的方法没有de, the method returns the handle to thevrnode
object associated with this node.
Method Summary
Method | Description |
---|---|
delete |
Removevrnode object |
fields |
Virtual world field summary of node object |
get |
Property value ofvrnode object |
getfield |
Field value ofvrnode object |
isvalid |
1 ifvrnode object is valid,0 if not |
set |
Change property of virtual world node |
setfield |
Change field value ofvrnode object |
sync |
Enable or disable synchronization of virtual world fields with client |
|
Change geometries to reduce number of vertices |