Class ModelNode
Definition
- Assembly:
- Tizen.NUI.Scene3D.dll
ModelNode is a class for representing the Node of Model in Scene3D.
public class ModelNode : View, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
- Implements
-
System.IDisposable
Remarks
ModelNode contains multiple ModelPrimitives and allows easy access and modification of Material information that ModelPrimitive has. If a 3D format file is loaded by Model, ModelNode is created internally to construct the model. In addition, you can create a Custom ModelNode using ModelPrimitive and Material directly and add it to Model.
ModelNode modelNode = new ModelNode();
ModelPrimitive modelPrimitive = new ModelPrimitive();
modelNode.AddModelPrimitive(modelPrimitive);
Material material = new Material;
modelPrimitive.Material = material;
Constructors
View SourceModelNode()
Create an initialized ModelNode.
Declaration
public ModelNode()
Remarks
ModelNode contains multiple ModelPrimitives and allows easy access and modification of Material information that ModelPrimitive has. If a 3D format file is loaded by Model, ModelNode is created internally to construct the model. In addition, you can create a Custom ModelNode using ModelPrimitive and Material directly and add it to Model.
ModelNode modelNode = new ModelNode();
ModelPrimitive modelPrimitive = new ModelPrimitive();
modelNode.AddModelPrimitive(modelPrimitive);
Material material = new Material;
modelPrimitive.Material = material;
ModelNode(ModelNode)
Copy constructor.
Declaration
public ModelNode(ModelNode modelNode)
Parameters
Type | Name | Description |
---|---|---|
ModelNode | modelNode | Source object to copy. |
Remarks
ModelNode contains multiple ModelPrimitives and allows easy access and modification of Material information that ModelPrimitive has. If a 3D format file is loaded by Model, ModelNode is created internally to construct the model. In addition, you can create a Custom ModelNode using ModelPrimitive and Material directly and add it to Model.
ModelNode modelNode = new ModelNode();
ModelPrimitive modelPrimitive = new ModelPrimitive();
modelNode.AddModelPrimitive(modelPrimitive);
Material material = new Material;
modelPrimitive.Material = material;
Properties
View SourceModelPrimitiveCount
Get the number of ModelPrimitive of this ModelNode.
Declaration
public uint ModelPrimitiveCount { get; }
Property Value
Type | Description |
---|---|
uint |
Remarks
ModelNode contains multiple ModelPrimitives and allows easy access and modification of Material information that ModelPrimitive has. If a 3D format file is loaded by Model, ModelNode is created internally to construct the model. In addition, you can create a Custom ModelNode using ModelPrimitive and Material directly and add it to Model.
ModelNode modelNode = new ModelNode();
ModelPrimitive modelPrimitive = new ModelPrimitive();
modelNode.AddModelPrimitive(modelPrimitive);
Material material = new Material;
modelPrimitive.Material = material;
Methods
View SourceAddModelPrimitive(ModelPrimitive)
Adds a ModelPrimitive object to the ModelNode object.
Declaration
public void AddModelPrimitive(ModelPrimitive modelPrimitive)
Parameters
Type | Name | Description |
---|---|---|
ModelPrimitive | modelPrimitive | The ModelPrimitive object to add. |
Remarks
ModelNode contains multiple ModelPrimitives and allows easy access and modification of Material information that ModelPrimitive has. If a 3D format file is loaded by Model, ModelNode is created internally to construct the model. In addition, you can create a Custom ModelNode using ModelPrimitive and Material directly and add it to Model.
ModelNode modelNode = new ModelNode();
ModelPrimitive modelPrimitive = new ModelPrimitive();
modelNode.AddModelPrimitive(modelPrimitive);
Material material = new Material;
modelPrimitive.Material = material;
FindChildModelNodeByName(string)
Returns a child ModelNode object with a name that matches nodeName.
Declaration
public ModelNode FindChildModelNodeByName(string nodeName)
Parameters
Type | Name | Description |
---|---|---|
string | nodeName | The name of the child ModelNode object you want to find. |
Returns
Type | Description |
---|---|
ModelNode | Child ModelNode that has nodeName as name. |
Remarks
ModelNode contains multiple ModelPrimitives and allows easy access and modification of Material information that ModelPrimitive has. If a 3D format file is loaded by Model, ModelNode is created internally to construct the model. In addition, you can create a Custom ModelNode using ModelPrimitive and Material directly and add it to Model.
ModelNode modelNode = new ModelNode();
ModelPrimitive modelPrimitive = new ModelPrimitive();
modelNode.AddModelPrimitive(modelPrimitive);
Material material = new Material;
modelPrimitive.Material = material;
GetModelPrimitive(uint)
Gets the ModelPrimitive object at the specified index.
Declaration
public ModelPrimitive GetModelPrimitive(uint index)
Parameters
Type | Name | Description |
---|---|---|
uint | index | The index of the ModelPrimitive object to get. |
Returns
Type | Description |
---|---|
ModelPrimitive | The ModelPrimitive object at the specified index. |
Remarks
ModelNode contains multiple ModelPrimitives and allows easy access and modification of Material information that ModelPrimitive has. If a 3D format file is loaded by Model, ModelNode is created internally to construct the model. In addition, you can create a Custom ModelNode using ModelPrimitive and Material directly and add it to Model.
ModelNode modelNode = new ModelNode();
ModelPrimitive modelPrimitive = new ModelPrimitive();
modelNode.AddModelPrimitive(modelPrimitive);
Material material = new Material;
modelPrimitive.Material = material;
ReleaseSwigCPtr(HandleRef)
Release swigCPtr.
Declaration
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.InteropServices.HandleRef | swigCPtr |
Remarks
ModelNode contains multiple ModelPrimitives and allows easy access and modification of Material information that ModelPrimitive has. If a 3D format file is loaded by Model, ModelNode is created internally to construct the model. In addition, you can create a Custom ModelNode using ModelPrimitive and Material directly and add it to Model.
ModelNode modelNode = new ModelNode();
ModelPrimitive modelPrimitive = new ModelPrimitive();
modelNode.AddModelPrimitive(modelPrimitive);
Material material = new Material;
modelPrimitive.Material = material;
RemoveModelPrimitive(uint)
Removes a ModelPrimitive object from the ModelNode object at the specified index.
Declaration
public void RemoveModelPrimitive(uint index)
Parameters
Type | Name | Description |
---|---|---|
uint | index | The index of the ModelPrimitive object to remove. |
Remarks
ModelNode contains multiple ModelPrimitives and allows easy access and modification of Material information that ModelPrimitive has. If a 3D format file is loaded by Model, ModelNode is created internally to construct the model. In addition, you can create a Custom ModelNode using ModelPrimitive and Material directly and add it to Model.
ModelNode modelNode = new ModelNode();
ModelPrimitive modelPrimitive = new ModelPrimitive();
modelNode.AddModelPrimitive(modelPrimitive);
Material material = new Material;
modelPrimitive.Material = material;
RemoveModelPrimitive(ModelPrimitive)
Removes a ModelPrimitive object from the ModelNode object.
Declaration
public void RemoveModelPrimitive(ModelPrimitive modelPrimitive)
Parameters
Type | Name | Description |
---|---|---|
ModelPrimitive | modelPrimitive | The ModelPrimitive object to remove. |
Remarks
ModelNode contains multiple ModelPrimitives and allows easy access and modification of Material information that ModelPrimitive has. If a 3D format file is loaded by Model, ModelNode is created internally to construct the model. In addition, you can create a Custom ModelNode using ModelPrimitive and Material directly and add it to Model.
ModelNode modelNode = new ModelNode();
ModelPrimitive modelPrimitive = new ModelPrimitive();
modelNode.AddModelPrimitive(modelPrimitive);
Material material = new Material;
modelPrimitive.Material = material;
SetColliderMesh(List<Vector3>, List<Vector3>, List<int>)
Sets collider mesh on current node
Declaration
public void SetColliderMesh(List<Vector3> vertexList, List<Vector3> normalList, List<int> indexList)
Parameters
Type | Name | Description |
---|---|---|
List<><Vector3> | vertexList | List of vertices |
List<><Vector3> | normalList | List of vertex normals |
List<><int> | indexList | List of mesh indices |
Remarks
ModelNode contains multiple ModelPrimitives and allows easy access and modification of Material information that ModelPrimitive has. If a 3D format file is loaded by Model, ModelNode is created internally to construct the model. In addition, you can create a Custom ModelNode using ModelPrimitive and Material directly and add it to Model.
ModelNode modelNode = new ModelNode();
ModelPrimitive modelPrimitive = new ModelPrimitive();
modelNode.AddModelPrimitive(modelPrimitive);
Material material = new Material;
modelPrimitive.Material = material;