Main Content

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

vrworld_object

Name of avrworldobject representing a virtual world.

node_name

Name of the node.

node_type

Type of the node.

parent_node

Name of the parent node that is avrnodeobject.

parent_field

Name of the field of the parent node.

'USE'

Enables aUSEreference to another node.

othernode

Name of another node for aUSEreference.

Description

mynode = vrnodecreates an emptyvrnodehandle that does not reference any node.

mynode = vrnode([])创建一个空数组vrnodehandles.

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_nameof typenode_typeon the root of the virtual world. It returns the handle to the newly created node.

mynode = vrnode(vrworld_object, 'USE', othernode)creates aUSEreference to the nodeothernodeon 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_nameof typenode_typethat is a child of theparent_nodeand resides in the fieldparent_field. It returns the handle to the newly created node.

mynode = vrnode(parent_node,'parent_field', 'USE', 'othernode')creates aUSEreference to the nodeothernodeas a child of nodeparentnodeand resides in the fieldparentfield. It returns the handle to the original node.

Avrnodeobject identifies a virtual world node in a way very similar to a handle. If you apply thevrnodemethod to a node that does not exist, the method creates a node, thevrnodeobject, and returns the handle to thevrnodeobject. If you apply thevrnode现有的方法没有de, the method returns the handle to thevrnodeobject associated with this node.

Method Summary

Method Description
delete Removevrnodeobject
fields Virtual world field summary of node object
get Property value ofvrnodeobject
getfield Field value ofvrnodeobject
isvalid 1ifvrnodeobject is valid,0if not
set Change property of virtual world node
setfield Change field value ofvrnodeobject
sync Enable or disable synchronization of virtual world fields with client
optimize Change geometries to reduce number of vertices

Version History

Introduced before R2006a