subdivide#

material.subdivide(p0: str) int#

Set the accuracy of the resulting material part - higher values result in higher fidelity.

Args:
p0:

‘level’

  • 1

  • 2

  • 3

Examples:
#
# Select the parent part
#
ensight.part.select_begin(1)
#
ensight.material.begin()
#
# create a domain type material part
#
ensight.material.type("domain")
ensight.material.subdivide("2")
#
# use the two materials shown
#
ensight.material.select_byname_begin("matl_02","matl_03")
ensight.material.end()
ensight.material.create()
Returns:

zero on success, non-zero on error