TexturedMesh

class omni.ui.scene.TexturedMesh

Bases: PolygonMesh

Encodes a polygonal mesh with free-form textures.

Methods

__init__(*args, **kwargs)

Overloaded function.

get_gesture_payload(*args, **kwargs)

Overloaded function.

Attributes

gesture_payload

Contains all the information about the intersection.

image_height

The resolution of rasterization of svg and for ImageProvider.

image_provider

" path, a direct path or the path relative to the application root directory.

image_width

The resolution for rasterization of svg and for ImageProvider.

source_url

" path, a direct path or the path relative to the application root directory.

uvs

This property holds the texture coordinates of the mesh.

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: omni.ui_scene._scene.TexturedMesh, source_url: str, uvs: object, positions: object, colors: object, vertex_counts: List[int], vertex_indices: List[int], legacy_flipped_v: bool = True, **kwargs) -> None

Construct a mesh with predefined properties.

### Arguments:

`sourceUrl :`

Describes the texture image url.

`uvs :`

Describes uvs for the image texture.

`positions :`

Describes points in local space.

`colors :`

Describes colors per vertex.

`vertexCounts :`

The number of vertices in each face.

`vertexIndices :`

The list of the index of each vertex of each face in the mesh.

`kwargsdict`

See below

### Keyword Arguments:

`uvs`

This property holds the texture coordinates of the mesh.

`source_url`

This property holds the image URL. It can be an “omni:” path, a “file:” path, a direct path or the path relative to the application root directory.

`image_provider`

This property holds the image provider. It can be an “omni:” path, a “file:” path, a direct path or the path relative to the application root directory.

`image_width`

The resolution for rasterization of svg and for ImageProvider.

`image_height`

The resolution of rasterization of svg and for ImageProvider.

`positions`

The primary geometry attribute, describes points in local space.

`colors`

Describes colors per vertex.

`vertex_counts`

Provides the number of vertices in each face of the mesh, which is also the number of consecutive indices in vertex_indices that define the face. The length of this attribute is the number of faces in the mesh.

`vertex_indices`

Flat list of the index (into the points attribute) of each vertex of each face in the mesh.

`thicknesses`

When wireframe is true, it defines the thicknesses of lines.

`intersection_thickness`

The thickness of the line for the intersection.

`wireframe: `

When true, the mesh is drawn as lines.

`gesture`

All the gestures assigned to this shape.

`gestures`

All the gestures assigned to this shape.

`visible`

This property holds whether the item is visible.

  1. __init__(self: omni.ui_scene._scene.TexturedMesh, image_provider: omni.ui._ui.ImageProvider, uvs: object, positions: object, colors: object, vertex_counts: List[int], vertex_indices: List[int], legacy_flipped_v: bool = True, **kwargs) -> None

Construct a mesh with predefined properties.

### Arguments:

`imageProvider :`

Describes the texture image provider.

`uvs :`

Describes uvs for the image texture.

`positions :`

Describes points in local space.

`colors :`

Describes colors per vertex.

`vertexCounts :`

The number of vertices in each face.

`vertexIndices :`

The list of the index of each vertex of each face in the mesh.

`kwargsdict`

See below

### Keyword Arguments:

`uvs`

This property holds the texture coordinates of the mesh.

`source_url`

This property holds the image URL. It can be an “omni:” path, a “file:” path, a direct path or the path relative to the application root directory.

`image_provider`

This property holds the image provider. It can be an “omni:” path, a “file:” path, a direct path or the path relative to the application root directory.

`image_width`

The resolution for rasterization of svg and for ImageProvider.

`image_height`

The resolution of rasterization of svg and for ImageProvider.

`positions`

The primary geometry attribute, describes points in local space.

`colors`

Describes colors per vertex.

`vertex_counts`

Provides the number of vertices in each face of the mesh, which is also the number of consecutive indices in vertex_indices that define the face. The length of this attribute is the number of faces in the mesh.

`vertex_indices`

Flat list of the index (into the points attribute) of each vertex of each face in the mesh.

`thicknesses`

When wireframe is true, it defines the thicknesses of lines.

`intersection_thickness`

The thickness of the line for the intersection.

`wireframe: `

When true, the mesh is drawn as lines.

`gesture`

All the gestures assigned to this shape.

`gestures`

All the gestures assigned to this shape.

`visible`

This property holds whether the item is visible.

get_gesture_payload(*args, **kwargs)

Overloaded function.

  1. get_gesture_payload(self: omni.ui_scene._scene.TexturedMesh) -> omni.ui_scene._scene.TexturedMeshGesturePayload

Contains all the information about the intersection.

  1. get_gesture_payload(self: omni.ui_scene._scene.TexturedMesh, arg0: omni.ui_scene._scene.GestureState) -> omni.ui_scene._scene.TexturedMeshGesturePayload

Contains all the information about the intersection at the specific state.

property gesture_payload

Contains all the information about the intersection.

property image_height

The resolution of rasterization of svg and for ImageProvider.

property image_provider

” path, a direct path or the path relative to the application root directory.

Type

This property holds the image provider. It can be an “omni

Type

” path, a “file

property image_width

The resolution for rasterization of svg and for ImageProvider.

property source_url

” path, a direct path or the path relative to the application root directory.

Type

This property holds the image URL. It can be an “omni

Type

” path, a “file

property uvs

This property holds the texture coordinates of the mesh.