plane_normal#
- view_transf.plane_normal(p0: float, p1: float, p2: float) int #
Specify the plane tool orientation.
The normal is in reference to the selected coordinate frame.- Args:
- p0:
‘x_dir’ x, y, z component of the plane tool normal
- p1:
‘y_dir’ x, y, z component of the plane tool normal
- p2:
‘z_dir’ x, y, z component of the plane tool normal
- Examples:
ensight.tools.plane("ON") ensight.view_transf.function("plane") # # define the plane to be located at 0,1,0 with the z-axis (plane normal) # pointing in the x direction. The plane is 3 units in X and 4 units in Y # (x and y according to the plane definition) # ensight.view_transf.plane_origin(0.000000e+00,1.000000e+00,0.000000e+00) ensight.view_transf.plane_normal(1.000000e+00,0.000000e+00,0.000000e+00) ensight.view_transf.plane_size(3.000000e+00,4.000000e+00)
- Returns:
zero on success, non-zero on error