Class MeshVisual
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
A class encapsulating the property map of the mesh visual.
C#Copypublic class MeshVisual : VisualMap
- Inheritance
Constructors
Declaration
C#Copypublic MeshVisual()
API Level: 3
Properties
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#Copypublic Vector3 LightPosition { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
API Level: 3
MaterialtURL
Gets or sets the location of the ".mtl" file.
If not specified, then a textureless object is assumed.
Optional.
Declaration
C#Copypublic string MaterialtURL { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
MaterialURL
Gets or sets the location of the ".mtl" file.
If not specified, then a textureless object is assumed.
Optional.
Declaration
C#Copypublic string MaterialURL { get; set; }
Property Value
Type | Description |
---|---|
String |
Declaration
C#Copypublic string ObjectURL { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
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#Copypublic MeshVisualShadingModeValue ShadingMode { get; set; }
Property Value
Type | Description |
---|---|
MeshVisualShadingModeValue |
API Level: 3
TexturesPath
Gets or sets the path to the directory the textures (including gloss and normal) are stored in.
Mandatory if using material.
Declaration
C#Copypublic string TexturesPath { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
UseMipmapping
Gets or sets whether to use mipmaps for textures or not.
If not specified, the default is true.
Optional.
Declaration
C#Copypublic bool UseMipmapping { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
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#Copypublic bool UseSoftNormals { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
Methods
Declaration
C#Copyprotected override void ComposingPropertyMap()