Class ModelPrimitive
Definition
- Namespace:
- Tizen.NUI.Scene3D
- Assembly:
- Tizen.NUI.Scene3D.dll
Class for Model Primitives for 3D Geometry and Material.
C#Copypublic class ModelPrimitive : BaseHandle, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
- Inheritance
- Implements
Remarks
This ModelPrimitive class is required to draw the mesh geometry defined by the user. Users can set Geometry and Material to ModelPrimitive. When ModelPrimitive added to ModelNode using ModelNode.AddModelPrimitive() method, the Geometry is rendered on the screen according to the Material settings.
If you load resources from 3D format files such as glTF using Model class, ModelPrimitive is also created internally. In this case, blendShape morphing or skeletal animation defined in the format can be used. However, for the custom ModelPrimitive that is created by user, blendShape morphing or skeletal animation is not supported.
Constructors
Declaration
C#Copypublic ModelPrimitive()
Declaration
C#Copypublic ModelPrimitive(ModelPrimitive modelPrimitive)
Parameters
Type | Name | Description |
---|---|---|
ModelPrimitive | modelPrimitive | Source object to copy. |
Properties
Declaration
C#Copypublic Geometry Geometry { get; set; }
Property Value
Type | Description |
---|---|
Geometry |
Remarks
This Geometry object is for setting Geometry properties of 3D models. Also, Geometry can be shared with multiple ModelPrimitives and if the value is modified, the rendering results of all ModelPrimitives using this Geometry will be changed.
Declaration
C#Copypublic Material Material { get; set; }
Property Value
Type | Description |
---|---|
Material |
Remarks
This Material object is for setting Material properties of 3D models. Also, Material can be shared with multiple ModelPrimitives and if the value is modified, the rendering results of all ModelPrimitives using this Material will be changed.
Methods
Declaration
C#Copyprotected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.InteropServices.HandleRef | swigCPtr |