Class ModelPrimitive

Definition

Namespace:
Tizen.NUI.Scene3D
Assembly:
Tizen.NUI.Scene3D.dll

Class for Model Primitives for 3D Geometry and Material.

C#
Copy
public 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

View Source

ModelPrimitive()

Create an initialized ModelPrimitive.

Declaration
C#
Copy
public ModelPrimitive()
View Source

ModelPrimitive(ModelPrimitive)

Copy constructor.

Declaration
C#
Copy
public ModelPrimitive(ModelPrimitive modelPrimitive)
Parameters
Type Name Description
ModelPrimitive modelPrimitive

Source object to copy.

Properties

View Source

Geometry

The Geometry object of the ModelNode object.

Declaration
C#
Copy
public 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.

View Source

Material

The Material object of the ModelNode object.

Declaration
C#
Copy
public 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

View Source

ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)

Release swigCPtr.

Declaration
C#
Copy
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type Name Description
System.Runtime.InteropServices.HandleRef swigCPtr

Implements

Extension Methods