zclip_float#

view_transf.zclip_float(p0: str) int#

Sets the z-clipping state. The front and back z-clipping planes can “float” so that they are always outside the model - causing no z-clipping to occur, or they can be set once initially and are then subject to manual modification.

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:

‘toggle’

  • ON

  • OFF

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 
# 
ensight.view_transf.zclip_float("ON")
ensight.view_transf.zclip_min(4.00000e-04)
Returns:

zero on success, non-zero on error