class SceneBone
 SceneBone is the bone node in the simplygon scene graph
  Properties
 | Property | Description | 
|---|
 | IsFrozen | The IsFrozen flag. If set, the node will not be modified by processing modules. | 
 | IsModified | If set, the node is new, copied, or modified by processing modules. This can be useful to track modifications in the scene graph. | 
 | IsVisible | The IsVisible flag. If set, the node is visible. | 
 | NodeGUID | The unique id for this node. | 
 | OriginalName | The OriginalName parameter which can be used to specify the original name of a node, for debugging of merging purposes. This parameter is not copied or cloned, and is not used internally by Simplygon. | 
  Methods
 | Method | Description | 
|---|
 | AddChild | Adds a child node to this node. If the child is already a child of another node, it is removed from this node. | 
 | CalculateExtents | Calculates the axis-aligned bounding box of the node and all its children. If the node tree contains no geometric data, or all data is hidden, the bounding box is not calcluated, and the method returns false. | 
 | CollectAllChildBones | Looks through the sub-tree and collects the IDs of the bones found. | 
 | CreateChildMesh | Creates a SceneMesh node as a child node to this node. | 
 | CreateChildPlane | Creates a ScenePlane node as a child node to this node. | 
 | EvaluateDefaultGlobalTransformation | Evaluates the default global transformation of the node, regardless of node animation. | 
 | FindNamedChild | Finds the first child that has the name. | 
 | GetBoneId | The BoneId. | 
 | GetChild | Get a pointer to the i:th child of this node. | 
 | GetChildCount | The number of direct children of this node. | 
 | GetClass | Get the name of the SceneBone class. | 
 | GetInf | The inferior (minimum) extent of the node. | 
 | GetParent | The parent node of this node. | 
 | GetParentBone | Looks through the hierarchy and fetches the previous BoneNode. If none is found, this is a Root-Bone-Node. -1 means it has no parent, otherwise, the ID is the parent ID. | 
 | GetPath | The path to this node in the scene. Please note that only paths where each node has a name can be used to get to the node using the path. | 
 | GetRelativeTransform | The relative transformation of this node. | 
 | GetScene | The scene object of the node. | 
 | GetSup | The superior (maximum) extent of the node. | 
 | HasChild | Returns true if the node has the specified child. | 
 | IsA | Returns true if SceneBone is a or is a descendant of the class named as the type parameter. | 
 | IsNull | Returns true if the SceneBone object is invalid. | 
 | NewClone | Clones this node tree (this node and all the descendants of this node) and returns the cloned top node. Please note that the copy is not added to any scene, and can be added anywhere. Also note that the clone shares all data pointers with the original nodes, such as geometry data objects. | 
 | NewCopy | Deep copies this node tree (this node and all the descendants of this node) and returns the copy top node. Please note that the copy is not added to any scene, and can be added anywhere. | 
 | RemoveChild | Removes a child from the node. | 
 | RemoveChildren | Removes all children of this node. | 
 | RemoveFromParent | Removes this node from its parent. | 
  Static methods
 | Method | Description | 
|---|
 | IsClassA | Returns true if the class is a or is a descendant of the class named as the type parameter. | 
 | SafeCast | SafeCast makes sure the input object is of a class that can be cast into spSceneBone, and if this is the case, returns the object cast into spSceneBone. | 
  Properties details
  IsFrozen
 The IsFrozen flag. If set, the node will not be modified by processing modules.
   Syntax
  SetIsFrozen parameters
 | Type | Name | Min | Max | Description | 
|---|
 | bool | value |  |  | The bool that isFrozen is to be set to. | 
  GetIsFrozen return value
 Type: bool
  Syntax
  SetIsFrozen parameters
 | Type | Name | Min | Max | Description | 
|---|
 | bool | value |  |  | The bool that isFrozen is to be set to. | 
  GetIsFrozen return value
 Type: bool
  Syntax
  SetIsFrozen parameters
 | Name | Type | Min | Max | Description | 
|---|
 | value | bool |  |  | The bool that isFrozen is to be set to. | 
  GetIsFrozen return value
 Type: bool
   IsModified
 If set, the node is new, copied, or modified by processing modules. This can be useful to track modifications in the scene graph.
   Syntax
  SetIsModified parameters
 | Type | Name | Min | Max | Description | 
|---|
 | bool | value |  |  | The bool that IsModified is to be set to. | 
  GetIsModified return value
 Type: bool
  Syntax
  SetIsModified parameters
 | Type | Name | Min | Max | Description | 
|---|
 | bool | value |  |  | The bool that IsModified is to be set to. | 
  GetIsModified return value
 Type: bool
  Syntax
  SetIsModified parameters
 | Name | Type | Min | Max | Description | 
|---|
 | value | bool |  |  | The bool that IsModified is to be set to. | 
  GetIsModified return value
 Type: bool
   IsVisible
 The IsVisible flag. If set, the node is visible.
   Syntax
  SetIsVisible parameters
 | Type | Name | Min | Max | Description | 
|---|
 | bool | value |  |  | The bool that isVisible is to be set to. | 
  GetIsVisible return value
 Type: bool
  Syntax
  SetIsVisible parameters
 | Type | Name | Min | Max | Description | 
|---|
 | bool | value |  |  | The bool that isVisible is to be set to. | 
  GetIsVisible return value
 Type: bool
  Syntax
  SetIsVisible parameters
 | Name | Type | Min | Max | Description | 
|---|
 | value | bool |  |  | The bool that isVisible is to be set to. | 
  GetIsVisible return value
 Type: bool
   NodeGUID
 The unique id for this node.
   Syntax
  SetNodeGUID parameters
 | Type | Name | Min | Max | Description | 
|---|
 | const char * | value |  |  | The node id of type string. | 
  GetNodeGUID return value
 Type: spString
  Syntax
  SetNodeGUID parameters
 | Type | Name | Min | Max | Description | 
|---|
 | string | value |  |  | The node id of type string. | 
  GetNodeGUID return value
 Type: string
  Syntax
  SetNodeGUID parameters
 | Name | Type | Min | Max | Description | 
|---|
 | value | str |  |  | The node id of type string. | 
  GetNodeGUID return value
 Type: str
   OriginalName
 The OriginalName parameter which can be used to specify the original name of a node, for debugging of merging purposes. This parameter is not copied or cloned, and is not used internally by Simplygon.
   Syntax
  SetOriginalName parameters
 | Type | Name | Min | Max | Description | 
|---|
 | const char * | value |  |  | Is a string the name is to be set to. | 
  GetOriginalName return value
 Type: spString
  Syntax
  SetOriginalName parameters
 | Type | Name | Min | Max | Description | 
|---|
 | string | value |  |  | Is a string the name is to be set to. | 
  GetOriginalName return value
 Type: string
  Syntax
  SetOriginalName parameters
 | Name | Type | Min | Max | Description | 
|---|
 | value | str |  |  | Is a string the name is to be set to. | 
  GetOriginalName return value
 Type: str
   Methods details
  AddChild
 Adds a child node to this node. If the child is already a child of another node, it is removed from this node.
   Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | SceneNode | child |  |  | The child object. | 
  Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | SceneNode | child |  |  | The child object. | 
  Syntax
  Parameters
 | Name | Type | Min | Max | Description | 
|---|
 | child | SceneNode |  |  | The child object. | 
   CalculateExtents
 Calculates the axis-aligned bounding box of the node and all its children. If the node tree contains no geometric data, or all data is hidden, the bounding box is not calcluated, and the method returns false.
   Syntax
  Parameters
 CalculateExtents takes no parameters.
  Return value
 Type: bool
  Syntax
  Parameters
 CalculateExtents takes no parameters.
  Return value
 Type: bool
  Syntax
  Parameters
 CalculateExtents takes no parameters.
  Return value
 Type: bool
   CollectAllChildBones
 Looks through the sub-tree and collects the IDs of the bones found.
   Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | RidArray | child_bones |  |  | The array to which the ids of found child bones will be written. | 
  Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | RidArray | child_bones |  |  | The array to which the ids of found child bones will be written. | 
  Syntax
  Parameters
 | Name | Type | Min | Max | Description | 
|---|
 | child_bones | RidArray |  |  | The array to which the ids of found child bones will be written. | 
   CreateChildMesh
 Creates a SceneMesh node as a child node to this node.
   Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | GeometryData | geom |  |  | The GeometryData object to associate with this node. | 
  Return value
 Type: SceneMesh
  Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | GeometryData | geom |  |  | The GeometryData object to associate with this node. | 
  Return value
 Type: SceneMesh
  Syntax
  Parameters
 | Name | Type | Min | Max | Description | 
|---|
 | geom | GeometryData |  |  | The GeometryData object to associate with this node. | 
  Return value
 Type: SceneMesh
   CreateChildPlane
 Creates a ScenePlane node as a child node to this node.
   Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | RealData | position |  |  | The point on the plane. | 
 | RealData | normal |  |  | The normal to the plane. | 
  Return value
 Type: ScenePlane
  Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | float[] | position |  |  | The point on the plane. | 
 | float[] | normal |  |  | The normal to the plane. | 
  Return value
 Type: ScenePlane
  Syntax
  Parameters
 | Name | Type | Min | Max | Description | 
|---|
 | position | float |  |  | The point on the plane. | 
 | normal | float |  |  | The normal to the plane. | 
  Return value
 Type: ScenePlane
   Evaluates the default global transformation of the node, regardless of node animation.
   Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | Matrix4x4 | global_transform |  |  | The transformation matrix that receives the global transformation. | 
  Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | Matrix4x4 | global_transform |  |  | The transformation matrix that receives the global transformation. | 
  Syntax
  Parameters
 | Name | Type | Min | Max | Description | 
|---|
 | global_transform | Matrix4x4 |  |  | The transformation matrix that receives the global transformation. | 
   FindNamedChild
 Finds the first child that has the name.
   Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | const char * | name |  |  | The name of the child to look for. | 
  Return value
 Type: SceneNode
  Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | string | name |  |  | The name of the child to look for. | 
  Return value
 Type: SceneNode
  Syntax
  Parameters
 | Name | Type | Min | Max | Description | 
|---|
 | name | str |  |  | The name of the child to look for. | 
  Return value
 Type: SceneNode
   GetBoneId
 The BoneId.
   Syntax
  Parameters
 GetBoneId takes no parameters.
  Return value
 Type: rid
  Syntax
  Parameters
 GetBoneId takes no parameters.
  Return value
 Type: rid
  Syntax
  Parameters
 GetBoneId takes no parameters.
  Return value
 Type: int
   GetChild
 Get a pointer to the i:th child of this node.
   Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | rid | index |  |  | The local index of the child (0->GetChildCount()-1) | 
  Return value
 Type: SceneNode
  Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | rid | index |  |  | The local index of the child (0->GetChildCount()-1) | 
  Return value
 Type: SceneNode
  Syntax
  Parameters
 | Name | Type | Min | Max | Description | 
|---|
 | index | int |  |  | The local index of the child (0->GetChildCount()-1) | 
  Return value
 Type: SceneNode
   GetChildCount
 The number of direct children of this node.
   Syntax
  Parameters
 GetChildCount takes no parameters.
  Return value
 Type: unsigned int
  Syntax
  Parameters
 GetChildCount takes no parameters.
  Return value
 Type: uint
  Syntax
  Parameters
 GetChildCount takes no parameters.
  Return value
 Type: int
   GetClass
 Get the name of the SceneBone class.
   Syntax
  Parameters
 GetClass takes no parameters.
  Return value
 Type: spString
  Syntax
  Parameters
 GetClass takes no parameters.
  Return value
 Type: string
  Syntax
  Parameters
 GetClass takes no parameters.
  Return value
 Type: str
   GetInf
 The inferior (minimum) extent of the node.
   Syntax
  Parameters
 GetInf takes no parameters.
  Return value
 Type: RealData
  Syntax
  Parameters
 GetInf takes no parameters.
  Return value
 Type: RealData
  Syntax
  Parameters
 GetInf takes no parameters.
  Return value
 Type: float
   GetParent
 The parent node of this node.
   Syntax
  Parameters
 GetParent takes no parameters.
  Return value
 Type: SceneNode
  Syntax
  Parameters
 GetParent takes no parameters.
  Return value
 Type: SceneNode
  Syntax
  Parameters
 GetParent takes no parameters.
  Return value
 Type: SceneNode
   GetParentBone
 Looks through the hierarchy and fetches the previous BoneNode. If none is found, this is a Root-Bone-Node. -1 means it has no parent, otherwise, the ID is the parent ID.
   Syntax
  Parameters
 GetParentBone takes no parameters.
  Return value
 Type: rid
  Syntax
  Parameters
 GetParentBone takes no parameters.
  Return value
 Type: rid
  Syntax
  Parameters
 GetParentBone takes no parameters.
  Return value
 Type: int
   GetPath
 The path to this node in the scene. Please note that only paths where each node has a name can be used to get to the node using the path.
   Syntax
  Parameters
 GetPath takes no parameters.
  Return value
 Type: spString
  Syntax
  Parameters
 GetPath takes no parameters.
  Return value
 Type: string
  Syntax
  Parameters
 GetPath takes no parameters.
  Return value
 Type: str
   The relative transformation of this node.
   Syntax
  Parameters
 GetRelativeTransform takes no parameters.
  Return value
 Type: Matrix4x4
  Syntax
  Parameters
 GetRelativeTransform takes no parameters.
  Return value
 Type: Matrix4x4
  Syntax
  Parameters
 GetRelativeTransform takes no parameters.
  Return value
 Type: Matrix4x4
   GetScene
 The scene object of the node.
   Syntax
  Parameters
 GetScene takes no parameters.
  Return value
 Type: Scene
  Syntax
  Parameters
 GetScene takes no parameters.
  Return value
 Type: Scene
  Syntax
  Parameters
 GetScene takes no parameters.
  Return value
 Type: Scene
   GetSup
 The superior (maximum) extent of the node.
   Syntax
  Parameters
 GetSup takes no parameters.
  Return value
 Type: RealData
  Syntax
  Parameters
 GetSup takes no parameters.
  Return value
 Type: RealData
  Syntax
  Parameters
 GetSup takes no parameters.
  Return value
 Type: float
   HasChild
 Returns true if the node has the specified child.
   Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | SceneNode | child |  |  | The child node to look for. | 
  Return value
 Type: bool
  Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | SceneNode | child |  |  | The child node to look for. | 
  Return value
 Type: bool
  Syntax
  Parameters
 | Name | Type | Min | Max | Description | 
|---|
 | child | SceneNode |  |  | The child node to look for. | 
  Return value
 Type: bool
   IsA
 Returns true if SceneBone is a or is a descendant of the class named as the type parameter.
   Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | const char * | type |  |  | Name of the class to check if SceneBone is, or is a descendant of. | 
  Return value
 Type: bool
  Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | string | type |  |  | Name of the class to check if SceneBone is, or is a descendant of. | 
  Return value
 Type: bool
  Syntax
  Parameters
 | Name | Type | Min | Max | Description | 
|---|
 | type | str |  |  | Name of the class to check if SceneBone is, or is a descendant of. | 
  Return value
 Type: bool
   IsNull
 Returns true if the SceneBone object is invalid.
   Syntax
  Parameters
 IsNull takes no parameters.
  Return value
 Type: bool
  Syntax
  Parameters
 IsNull takes no parameters.
  Return value
 Type: bool
  Syntax
  Parameters
 IsNull takes no parameters.
  Return value
 Type: bool
   NewClone
 Clones this node tree (this node and all the descendants of this node) and returns the cloned top node. Please note that the copy is not added to any scene, and can be added anywhere. Also note that the clone shares all data pointers with the original nodes, such as geometry data objects.
   Syntax
  Parameters
 NewClone takes no parameters.
  Return value
 Type: SceneNode
  Syntax
  Parameters
 NewClone takes no parameters.
  Return value
 Type: SceneNode
  Syntax
  Parameters
 NewClone takes no parameters.
  Return value
 Type: SceneNode
   NewCopy
 Deep copies this node tree (this node and all the descendants of this node) and returns the copy top node. Please note that the copy is not added to any scene, and can be added anywhere.
   Syntax
  Parameters
 NewCopy takes no parameters.
  Return value
 Type: SceneNode
  Syntax
  Parameters
 NewCopy takes no parameters.
  Return value
 Type: SceneNode
  Syntax
  Parameters
 NewCopy takes no parameters.
  Return value
 Type: SceneNode
   RemoveChild
 Removes a child from the node.
   Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | SceneNode | child |  |  | The child to be removed. | 
  Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | SceneNode | child |  |  | The child to be removed. | 
  Syntax
  Parameters
 | Name | Type | Min | Max | Description | 
|---|
 | child | SceneNode |  |  | The child to be removed. | 
   RemoveChildren
 Removes all children of this node.
   Syntax
  Parameters
 RemoveChildren takes no parameters.
  Syntax
  Parameters
 RemoveChildren takes no parameters.
  Syntax
  Parameters
 RemoveChildren takes no parameters.
   RemoveFromParent
 Removes this node from its parent.
   Syntax
  Parameters
 RemoveFromParent takes no parameters.
  Syntax
  Parameters
 RemoveFromParent takes no parameters.
  Syntax
  Parameters
 RemoveFromParent takes no parameters.
   Static methods details
  IsClassA
 Returns true if the class is a or is a descendant of the class named as the type parameter.
   Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | const char * | type |  |  | Name of the class to check if the class is, or is a descendant of. | 
  Return value
 Type: bool
  Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | string | type |  |  | Name of the class to check if the class is, or is a descendant of. | 
  Return value
 Type: bool
  Syntax
  Parameters
 | Name | Type | Min | Max | Description | 
|---|
 | type | str |  |  | Name of the class to check if the class is, or is a descendant of. | 
  Return value
 Type: bool
   SafeCast
 SafeCast makes sure the input object is of a class that can be cast into spSceneBone, and if this is the case, returns the object cast into spSceneBone.
   Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | Object | object |  |  | Object to cast. | 
  Return value
 Type: SceneBone
  Syntax
  Parameters
 | Type | Name | Min | Max | Description | 
|---|
 | Object | object |  |  | Object to cast. | 
  Return value
 Type: SceneBone
  Syntax
  Parameters
 | Name | Type | Min | Max | Description | 
|---|
 | object | Object |  |  | Object to cast. | 
  Return value
 Type: SceneBone