Setting xMin/xMax/yMin/yMax/zMin/zMax in 3D View

hjbortol shared this question 3 months ago
Answered

Hi!


In 2D, the ZoomIn(xMin, yMin, xMax, yMax) command allows to fit the Graphic View to the rectangle [xMin, xMax] x [yMin, yMax] but it doesn't work for the 3D View.


It is possible to fit the 3D View to a given box using JavaScript: void setCoordSystem(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, boolean yVertical).


My question: is there a GeoGebra command that allows to fit the 3D View to given values without JavaScript?


Thanks, Humberto.

Comments (4)

photo
1

0e828674768340818d7629f6298ba895

a=ggbApplet.getValue("a");

ggbApplet.setCoordSystem(-1.0*a,1.0*a,-1.0*a,1.0*a,-1.0*a,1.0*a, false)

photo
2

Try the new syntax in v544 :)


https://wiki.geogebra.org/s...

photo
1

This doesn't appear to work on the iPhone app:

photo
photo
1

Michael, thank you!

© 2019 International GeoGebra Institute