Curve#

class omni.ui.scene.Curve#

Bases: AbstractShape

Represents the curve.

Methods

__init__(self, arg0, **kwargs)

Constructs Curve.

get_gesture_payload(*args, **kwargs)

Overloaded function.

Attributes

colors

The list of colors which defines color per vertex.

curve_type

The curve interpolation type.

gesture_payload

Contains all the information about the intersection.

intersection_thicknesses

The thickness of the line for the intersection.

positions

The list of positions which defines the curve.

tesselation

The number of points per curve segment.

tessellation

The number of points per curve segment.

thicknesses

The list of thicknesses which defines thickness per vertex.

__init__(
self: omni.ui_scene._scene.Curve,
arg0: object,
**kwargs,
) None#

Constructs Curve.

### Arguments:

`positions :`

List of positions

`kwargsdict`

See below

### Keyword Arguments:

`positions`

The list of positions which defines the curve. It has at least two positions. The curve has len(positions)-1

`colors`

The list of colors which defines color per vertex. It has the same length as positions.

`thicknesses`

The list of thicknesses which defines thickness per vertex. It has the same length as positions.

`intersection_thickness`

The thickness of the line for the intersection.

`curve_type`

The curve interpolation type.

`tessellation`

The number of points per curve segment. It can’t be less than 2.

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

class CurveType#

Bases: pybind11_object

Members:

LINEAR

CUBIC

property name#
get_gesture_payload(*args, **kwargs)#

Overloaded function.

  1. get_gesture_payload(self: omni.ui_scene._scene.Curve) -> omni.ui_scene._scene.CurveGesturePayload

Contains all the information about the intersection.

  1. get_gesture_payload(self: omni.ui_scene._scene.Curve, arg0: omni.ui_scene._scene.GestureState) -> omni.ui_scene._scene.CurveGesturePayload

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

property colors#

The list of colors which defines color per vertex. It has the same length as positions.

property curve_type#

The curve interpolation type.

property gesture_payload#

Contains all the information about the intersection.

property intersection_thicknesses#

The thickness of the line for the intersection.

property positions#

The list of positions which defines the curve. It has at least two positions. The curve has len(positions)-1

property tesselation#

The number of points per curve segment. It can’t be less than 2.

property tessellation#

The number of points per curve segment. It can’t be less than 2.

property thicknesses#

The list of thicknesses which defines thickness per vertex. It has the same length as positions.