representation#

ptrace.representation(p0: str) int#

Sets the display representation for a particle trace.

Use the ribbon or square_tubes representations whenever rotational effects need to be seen. Surface restricted traces can only be displayed in line representation.
Args:
p0:

‘rep’

  • line

  • ribbon

  • square_tubes

Examples:
#
# Selecting the trace(s)
#
ensight.part.select_begin(7,8)
#
# Modifying attributes for the two selected trace parts
# (representation is modified in here)
#
ensight.part.modify_begin()
ensight.ptrace.representation("ribbon")
ensight.ptrace.ribbon_width(2.0000e+00)
#
# Updates the traces with the modified attributes
#
ensight.part.modify_end()
Returns:

zero on success, non-zero on error