Class ModelPrimitive
Definition
- Assembly:
- Tizen.NUI.Scene3D.dll
Class for Model Primitives for 3D Geometry and Material.
public class ModelPrimitive : BaseHandle, IDynamicResourceHandler, INameScope, System.IDisposable
- Inheritance
- Implements
-
System.IDisposable
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 SourceModelPrimitive()
Create an initialized ModelPrimitive.
Declaration
public ModelPrimitive()
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.
ModelPrimitive(ModelPrimitive)
Copy constructor.
Declaration
public ModelPrimitive(ModelPrimitive modelPrimitive)
Parameters
Type | Name | Description |
---|---|---|
ModelPrimitive | modelPrimitive | Source object to copy. |
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.
Properties
View SourceGeometry
The Geometry object of the ModelNode object.
Declaration
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.
Material
The Material object of the ModelNode object.
Declaration
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 SourceReleaseSwigCPtr(HandleRef)
Release swigCPtr.
Declaration
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.InteropServices.HandleRef | swigCPtr |
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.