Class ModelPrimitive

    Definition

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

    Class for Model Primitives for 3D Geometry and Material.

    public class ModelPrimitive : BaseHandle, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    ModelPrimitive
    Implements
    IDynamicResourceHandler
    INameScope
    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 Source

    ModelPrimitive()

    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.

    View Source

    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 Source

    Geometry

    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.

    View Source

    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 Source

    ReleaseSwigCPtr(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.

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX