Rotate 3D view "Roll"

Marco Rainaldi shared this question 7 months ago
Answered

When it comes to roll, pitch, and yaw, it seems like the only way that the 3D view can be rotated is the pitch and yaw. Is there a way to rotate the 3D view in the Roll axis?

If I create a cone with a circular base in the xy-plane, I can never get the apex to point to the left. Just trying to see if there's something I'm missing about the rotate tool.

Comments (7)

photo
1

Do you like this? Look at details of alpha

Files: foro.ggb
photo
1

That's a cool animation!

My post was more about how to get a right circular cone to have its apex pointing in the direction of the x-axis. Something like the attached file (Cone Generator 90).

If you create a right circular cone with the base in the xy-plane (Cone Generator), you can't get the apex of the cone to point in that direction using the built-in 3D graphics view tools.

I was wondering how to get something like in the second file from the first file.

photo
2

select graphics 3d properties--> yaxis vertical

photo
1

That's the answer I was looking for! Is it possible to toggle this from a script?

photo
photo
1

Trabajo me ha costado encontralo

mira en

https://wiki.geogebra.org/e...

void setCoordSystem(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, boolean yVertical)

pienso que sería útil un comando ZoomIn( <Min x>, <Min y>, <Min z>,<Max x>, <Max y>, <Max z>,<boolean> ) similar y en GG

photo
1

Thanks so much! My Javascript knowledge is not great, so I'm going to have to work on learning more soon.

If I create a boolean variable "yvertcial" and a text object "text1" is it possible to do the following in the properties of the text1 object to have the axis orientation changed when clicking text1?

(1) On Click --> SetValue[yvertical,!yvertical]

(2) GlobalJavascript---> Somehow use the two following:

void registerObjectClickListener(String objName, String JSFunctionName)

and

void setCoordSystem(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, boolean yVertical)

I'm not sure how to make that all work, but I think the capability to make a clickable text object that will toggle whether the y-axis is vertical or not is there.

Again, thanks so much for all your help!

photo
1

I think the listener is not necessary

you can do an onupdatescript of type JS instead GGB script. See the checkbox down of edit window for scripts

the script must get the values of xmin,xmax,......... checkbox and use it in your command

photo
© 2021 International GeoGebra Institute