line_length#

view_transf.line_length(p0: float) int#

Changes the line tool length.

When this is applied, the location of endpoint 1 will not change, but endpoint 2 will be moved along the line through endpoint 1 and endpoint 2, until the points are separated by the length desired.
Args:
p0:

‘length’ desired length of the line tool

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)
# 
# Now make the tool 10 units long 
# (endpoint 2 will be moved) 
# 
ensight.view_transf.line_length(10.000000)
Returns:

zero on success, non-zero on error