#
# NEED_PARMS maxx maxy
#
# HELP: SYNOPSIS:
# HELP:     threeplane/views_autosize_byreality maxx maxy
# HELP:
# HELP: DESCRIPTION:
# HELP:     Set the size/zoom for all three planes by making a best fit
# HELP:     for a maxx by maxy screen.
#
DECLARE double $zfactor

CECHO ${$zfactor=1.0}
{ checkzero ${$root.vol[current].meta.physicalsize.x!=0.0}
	CECHO ${$zfactor=$root.vol[current].meta.physicalsize.z/$root.vol[current].meta.physicalsize.x}
} checkzero 0 0

! threeplane/views_autosize_internal ${$argv[1]} ${$argv[2]} ${$zfactor}
