create_surface_pt#

ptrace.create_surface_pt(p0: float, p1: float) int#

Create a surface restricted particle trace from a screen point pick location.

The “ptrace: surface_restricted” command must be ON prior to this command.
The default attributes and/or any “ptrace:” attribute commands between “ptrace: begin” and “ptrace: end” commands are used for the trace creation. A parent part or parts (containing the flow field) must be selected prior to this command.
Args:
p0:

‘screen_x’ screen x coordinate (0.0 to 1.0)

p1:

‘screen_y’ screen y coordinate (0.0 to 1.0)

Examples:
#
# Selecting the parent part(s)
#
ensight.part.select_begin(1,3,4)
#
# Setting some attributes before creation
# (surface_restricted must be on)
#
ensight.ptrace.begin()
ensight.ptrace.surface_restricted("ON")
ensight.ptrace.variable("VITESSE")
ensight.ptrace.type("streamline")
ensight.ptrace.component(1.0000e+00,1.0000e+00,1.0000e+00)
ensight.ptrace.representation("line")
ensight.ptrace.emit_at_current_time("ON")
ensight.ptrace.end()
#
# Creating surface restricted trace from a screen location
#
ensight.ptrace.create_surface_pt(0.148551,0.484398)
Returns:

zero on success, non-zero on error