fit#

view_transf.fit(p0: int) int#

Appropriate scaling and translations are done so that the visible parts fit in the selected viewport.

Args:
p0:

‘viewport’ viewport number in which the model will be fit. (0, 1, …)

Examples:
#
# too fit the model in viewport 0
#
ensight.view_transf.fit(0)
Returns:

zero on success, non-zero on error