Instances


Description:
Implements support for Instances exported from 3dsMax.
Instances are defined witht the Prefix: B3D_INSTANCE_[num]_
[num] is the Instance number - all objects that share the same Instance number are Instances of the same mesh.
The first Instance of an object exported has a mesh and is given the next available prefix (e.g. B3D_INSTANCE_1_). All other Instances of that object are exported without
a mesh, but share the same prefix.


Summary
EXT_Instance
EXT_InitInstances(ext.EXT_Entity,node)
EXT_EnumInstances(ext.EXT_Entity,node)
EXT_InitInstance(node)
EXT_FindInstance%(num)


EXT_Instance
Description:
A type to store a temporary list of instances
Field description:
entity


EXT_InitInstances(ext.EXT_Entity,node)
Description:
Find all Instances in this EXT_Entity
Parameters:
ext.EXT_Entity
node
Return value:
None


EXT_EnumInstances(ext.EXT_Entity,node)
Description:
Recursively parse nodes in the hierarchy for Instance tags
Parameters:
ext.EXT_Entity
node
Return value:
None


EXT_InitInstance(node)
Description:
A Prefix identifies Instances: B3D_INST_[num]_
The first occurrence of an Instance contains a mesh, e.g. B3D_INST_0_Box01.
Further occurrences of that Instance, e.g. B3D_INST_0_Box02, have no meshes. When initializing those Instances, a copy of the first Instance is parented
to the node with no mesh.

Parameters:
node
Return value:
None


EXT_FindInstance(num)
Description:
Check if the specified Instance exists in the list of Instances already found
Parameters:
num
Return value:
entity handle if it exists (0 otherwise)



Documentation generated by Cod2Doc on 17 Feb 2004.