Node.CreateChildNode
Contents
[
Hide
]CreateChildNode()
Creates a child node
public Node CreateChildNode()
Return Value
The new child node.
Examples
The following code shows how to create a new child node under root node
Scene scene = new Scene();
Node node = scene.RootNode.CreateChildNode();
node.Entity = new Box();
scene.Save("output.fbx");
See Also
- class Node
- namespace Aspose.ThreeD
- assembly Aspose.3D
CreateChildNode(string)
Create a new child node with given node name
public Node CreateChildNode(string nodeName)
Parameter | Type | Description |
---|---|---|
nodeName | String | The new child node’s name |
Return Value
The new child node.
Examples
The following code shows how to create a new child node under root node
Scene scene = new Scene();
Node node = scene.RootNode.CreateChildNode("new node");
node.Entity = new Box();
scene.Save("output.fbx");
See Also
- class Node
- namespace Aspose.ThreeD
- assembly Aspose.3D
CreateChildNode(Entity)
Create a new child node with given entity attached
public Node CreateChildNode(Entity entity)
Parameter | Type | Description |
---|---|---|
entity | Entity | Default entity attached to the node |
Return Value
The new child node.
Examples
The following code shows how to create a new child node under root node
Scene scene = new Scene();
Node node = scene.RootNode.CreateChildNode(new Box());
scene.Save("output.fbx");
See Also
- class Entity
- class Node
- namespace Aspose.ThreeD
- assembly Aspose.3D
CreateChildNode(string, Entity)
Create a new child node with given node name
public Node CreateChildNode(string nodeName, Entity entity)
Parameter | Type | Description |
---|---|---|
nodeName | String | The new child node’s name |
entity | Entity | Default entity attached to the node |
Return Value
The new child node.
See Also
- class Entity
- class Node
- namespace Aspose.ThreeD
- assembly Aspose.3D
CreateChildNode(string, Entity, Material)
Create a new child node with given node name, and attach specified entity and a material
public Node CreateChildNode(string nodeName, Entity entity, Material material)
Parameter | Type | Description |
---|---|---|
nodeName | String | The new child node’s name |
entity | Entity | Default entity attached to the node |
material | Material | The material attached to the node |
Return Value
The new child node.
See Also
- class Entity
- class Material
- class Node
- namespace Aspose.ThreeD
- assembly Aspose.3D