Google Classroom
GeoGebraGeoGebra Classroom

Change 3D view

Description

Creates a button to change 3D view.

Scripting

#First - Setup faces = Slider(0, 4, 1, 1, 100, false, true, false, false) u_1 = (1, 0, 0) u_2 = (0, 1, 0) u_3 = (0, 0, 1) u_4 = (1; 120°; -20°) vdir = {u_1, u_2, u_3, u_4} Selectvec = Element(vdir, faces) #Second - Create a button with the following script SetValue(faces, faces + 1) SetViewDirection(Selectvec) If(faces==4, SetValue(faces, 0))

Demo