AxesPrimitive#

class ansys.stk.core.graphics.AxesPrimitive#

Bases: IPrimitive

Render an axes in the 3D scene.

Overview#

lighting

Get or set whether the primitive is lit.

label

Get or set the axes label.

display_label

Get or set whether the axes’ label is displayed.

display_trace

Get or set whether the persistence trace (points) is displayed.

display_sweep

Get or set whether the persistence sweep (triangles) is displayed.

display_lines

Get or set whether persistence lines are displayed.

persistence_width

Get or set persistence point/line width.

fade_persistence

Get or set whether the persistence path should fade over time.

persistence_duration

Get or set the maximum duration of the persistence path.

length

Get or set the axes’ source-to-arrow-tip length.

width

Get or set the width in pixels. As the camera distances changes from this primitive, the geometry will autoscale to maintain this thickness.

Import detail#

from ansys.stk.core.graphics import AxesPrimitive

Property detail#

property AxesPrimitive.lighting: bool#

Get or set whether the primitive is lit.

property AxesPrimitive.label: str#

Get or set the axes label.

property AxesPrimitive.display_label: bool#

Get or set whether the axes’ label is displayed.

property AxesPrimitive.display_trace: bool#

Get or set whether the persistence trace (points) is displayed.

property AxesPrimitive.display_sweep: bool#

Get or set whether the persistence sweep (triangles) is displayed.

property AxesPrimitive.display_lines: bool#

Get or set whether persistence lines are displayed.

property AxesPrimitive.persistence_width: float#

Get or set persistence point/line width.

property AxesPrimitive.fade_persistence: bool#

Get or set whether the persistence path should fade over time.

property AxesPrimitive.persistence_duration: float#

Get or set the maximum duration of the persistence path.

property AxesPrimitive.length: float#

Get or set the axes’ source-to-arrow-tip length.

property AxesPrimitive.width: float#

Get or set the width in pixels. As the camera distances changes from this primitive, the geometry will autoscale to maintain this thickness.