Class MeshVisual

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll
API Level:
3

A class encapsulating the property map of the mesh visual.

C#
Copy
public class MeshVisual : VisualMap
Inheritance
MeshVisual

Constructors

View Source

MeshVisual()

Constructor.

Declaration
C#
Copy
public MeshVisual()
API Level: 3

Properties

View Source

LightPosition

Gets or sets the position, in the stage space, of the point light that applies lighting to the model.
This is based off the stage's dimensions, so using the width and the height of the stage halved will correspond to the center, and using all zeroes will place the light at the top-left corner.
If not specified, the default is an offset outwards from the center of the screen.
Optional.

Declaration
C#
Copy
public Vector3 LightPosition { get; set; }
Property Value
Type Description
Vector3
API Level: 3
View Source

MaterialtURL

Gets or sets the location of the ".mtl" file.
If not specified, then a textureless object is assumed.
Optional.

Declaration
C#
Copy
public string MaterialtURL { get; set; }
Property Value
Type Description
String
API Level: 3
View Source

MaterialURL

Gets or sets the location of the ".mtl" file.
If not specified, then a textureless object is assumed.
Optional.

Declaration
C#
Copy
public string MaterialURL { get; set; }
Property Value
Type Description
String
View Source

ObjectURL

Gets or sets the location of the ".obj" file.
Mandatory.

Declaration
C#
Copy
public string ObjectURL { get; set; }
Property Value
Type Description
String
API Level: 3
View Source

ShadingMode

Gets or sets the type of shading mode that the mesh will use.
If anything the specified shading mode requires is missing, a simpler mode that can be handled with what has been supplied will be used instead.
If not specified, it will use the best it can support (will try MeshVisualShadingModeValue.TexturedWithDetailedSpecularLighting first).
Optional.

Declaration
C#
Copy
public MeshVisualShadingModeValue ShadingMode { get; set; }
Property Value
Type Description
MeshVisualShadingModeValue
API Level: 3
View Source

TexturesPath

Gets or sets the path to the directory the textures (including gloss and normal) are stored in.
Mandatory if using material.

Declaration
C#
Copy
public string TexturesPath { get; set; }
Property Value
Type Description
String
API Level: 3
View Source

UseMipmapping

Gets or sets whether to use mipmaps for textures or not.
If not specified, the default is true.
Optional.

Declaration
C#
Copy
public bool UseMipmapping { get; set; }
Property Value
Type Description
Boolean
API Level: 3
View Source

UseSoftNormals

Gets or sets whether to average normals at each point to smooth textures or not.
If not specified, the default is true.
Optional.

Declaration
C#
Copy
public bool UseSoftNormals { get; set; }
Property Value
Type Description
Boolean
API Level: 3

Methods

View Source

ComposingPropertyMap()

Compose the out visual map.

Declaration
C#
Copy
protected override void ComposingPropertyMap()
Overrides
API Level: 3

Extension Methods