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
The list of colors which defines color per vertex.
The curve interpolation type.
Contains all the information about the intersection.
The thickness of the line for the intersection.
The list of positions which defines the curve.
The number of points per curve segment.
The number of points per curve segment.
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.
- get_gesture_payload(*args, **kwargs)
Overloaded function.
get_gesture_payload(self: omni.ui_scene._scene.Curve) -> omni.ui_scene._scene.CurveGesturePayload
Contains all the information about the intersection.
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.