display_offset#

contour.display_offset(p0: float) int#

Translate the contour geometry in the surface normal direction by <offset> units.

Useful option when displaying contour parts on top of shaded objects in order to lift the contour line objects closer to the user to properly view them.
Works only if the surface normals are consistent.
Positive values are offsets in the surface normal direction while negative values are offsets in the opposite direction.
Args:
p0:

‘offset’ number of units in world coordinates to translate the contour information

Examples:
#
# Create a contour part of velocity magnitude
# displaying it offset from the surface by .01 in the
# negative surface normal direction
#
ensight.part.select_begin(2)
ensight.contour.begin()
ensight.contour.variable("velocity")
ensight.contour.display_offset(-.01)
ensight.contour.end()
ensight.contour.create()
Returns:

zero on success, non-zero on error