zclip_min#

view_transf.zclip_min(p0: float) int#

Sets the minimum to which the front z-clipping plane is allowed to “float”.

Since the z-buffer uses the resolution between the front and back clipping planes, it is desirable to have these planes “near” the model. However, unless you specifically want to perform z-clipping, these by default “float” as needed to avoid any z-clipping. If you want z-clipping control, you can turn this “floating” behavior off and set the front and back plane locations yourself. During the float mode, near clipping will occur if it must be at the specified minimum z-clip location. A minimum is needed to avoid z reflection. Since transformations can be different per viewport, this can be set for each viewport, thus a viewport selection is needed if more than one viewport is being used.
Args:
p0:

‘z_min’ minimum allowable z location for the front z-clipping plane

Examples:
# 
# Select viewport 
# 
ensight.viewport.select_begin(1)
# 
# Set z-clip float OFF and set the location 
# of the front and back clipping planes 
# 
ensight.view_transf.zclip_float("OFF")
ensight.view_transf.zclip_front(7.2296e+00)
ensight.view_transf.zclip_back(3.5459e+01)
# 
# To have them float instead 
# (note the minimum being set) 
# 
ensight.view_transf.zclip_float("ON")
ensight.view_transf.zclip_min(4.00000e-04)
Returns:

zero on success, non-zero on error