offset#

elevsurf.offset(p0: float) int#

Specifies a value that is added to the variable values before the scale factor is applied. Has the effect of moving the surface basis relative to the model.

Args:
p0:

‘offset_val’ value that is applied to the variable values before scaling.

Examples:
#
# Select existing elevated surface part
#
ensight.part.select_begin(3)
ensight.part.modify_begin()
ensight.elevsurf.variable("N_velocity")
ensight.elevsurf.component(1.0000e+00,0.0000e+00,0.0000e+00)
ensight.elevsurf.scale_factor(9.9660e-01)
ensight.elevsurf.offset(1.5000e+00)
ensight.part.modify_end()
Returns:

zero on success, non-zero on error