shading#

part.shading(p0: str) int#

Specifies the type of surface shading used on the currently selected part(s).

Args:
p0:

‘type’

  • Can have any of the following values:

  • flat

  • gouraud

  • smooth

Examples:
ensight.view.hidden_surface("ON")
ensight.part.select_begin(1)
ensight.part.modify_begin()
ensight.part.hidden_surface("ON")
ensight.part.shading("gouraud")
ensight.part.modify_end()
Returns:

zero on success, non-zero on error