component#

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

The isosurface algorithm works only on scalar variables. For a vector, this command specifies how a scalar will be created from the vector.

The scale factors apply only if the isosurface variable is a vector.
Usually used with a scale factor of 0 or 1. in order to use only a component of a vector.
A special condition exists when x_scale = y_scale = z_scale = 0, in which case the vector magnitude is used.
The default is x_scale = y_scale = z_scale = 0.
Args:
p0:

‘x_scale’ factor to scale the x, y, z components of the vector

p1:

‘y_scale’ factor to scale the x, y, z components of the vector

p2:

‘z_scale’ factor to scale the x, y, z components of the vector

Examples:
ensight.part.select_begin(3)
#
# Use the y_component of the vector
#
ensight.part.modify_begin()
ensight.isos.component(0,1,0)
ensight.part.modify_end()
Returns:

zero on success, non-zero on error