line#

view_transf.line(p0: float, p1: float, p2: float, p3: float) int#

Sets the location of the line tool by setting two endpoints.

Coordinates are in reference to the selected coordinate frame.
Args:
p0:

‘end_pt’

  • 1 - for the first end of the line

  • 2 - for the second end of the line

p1:

‘x_coord’ the x coordinate of the end point

p2:

‘y_coord’ the y coordinate of the end point

p3:

‘z_coord’ the z coordinate of the end point

Examples:
# 
# Set the line tool endpoints 
# 
ensight.view_transf.line(1,-0.723300,0.700000,1.000000)
ensight.view_transf.line(2,1.723300,0.500000,1.000000)
Returns:

zero on success, non-zero on error