PolygonMesh

class omni.ui.scene.PolygonMesh

Bases: AbstractShape

Encodes a mesh.

Methods

__init__(self, positions, colors, ...)

Construct a mesh with predefined properties.

get_gesture_payload(*args, **kwargs)

Overloaded function.

Attributes

colors

Describes colors per vertex.

gesture_payload

Contains all the information about the intersection.

intersection_thicknesses

The thickness of the line for the intersection.

positions

The primary geometry attribute, describes points in local space.

thicknesses

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

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.

vertex_indices

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

wireframe

When true, the mesh is drawn as lines.

__init__(self: omni.ui_scene._scene.PolygonMesh, positions: object, colors: object, vertex_counts: List[int], vertex_indices: List[int], **kwargs) None

Construct a mesh with predefined properties.

### Arguments:

`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:

`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.PolygonMesh) -> omni.ui_scene._scene.PolygonMeshGesturePayload

Contains all the information about the intersection.

  1. get_gesture_payload(self: omni.ui_scene._scene.PolygonMesh, arg0: omni.ui_scene._scene.GestureState) -> omni.ui_scene._scene.PolygonMeshGesturePayload

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

property colors

Describes colors per vertex.

property gesture_payload

Contains all the information about the intersection.

property intersection_thicknesses

The thickness of the line for the intersection.

property positions

The primary geometry attribute, describes points in local space.

property thicknesses

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

property 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.

property vertex_indices

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

property wireframe

When true, the mesh is drawn as lines.