component#

vctarrow.component(p0: float, p1: float, p2: float) int#

Specify a scaling factor for each component of the vector variable, to be used in calculating both the magnitude and direction of the vector arrow.

Specify 1 to use the full value of a component. Specify 0 to ignore the corresponding vector components (and thus confine all vector arrows to planes perpendicular to that axis).
Values may be negative to reverse the direction of the component.
Args:
p0:

‘x_scale’ scaling for the x-component

p1:

‘y_scale’ scaling for the y-component

p2:

‘z_scale’ scaling for the z-component

Examples:
ensight.vctarrow.begin()
ensight.vctarrow.variable("VITESSE")
ensight.vctarrow.end()
ensight.vctarrow.create()
ensight.part.select_begin(2)
ensight.part.modify_begin()
ensight.vctarrow.component(2.0000e+00,1.0000e+00,1.0000e+00)
ensight.part.modify_end()
Returns:

zero on success, non-zero on error