// Numbas version: exam_results_page_options {"name": "Demo: 3D Geogebra diagram", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Demo: 3D Geogebra diagram", "tags": ["Geogebra"], "metadata": {"description": "

Shows how to switch to the 3D graphics view of a geogebra applet using an extension function.

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

{graphics3D(applet)}

\n

", "advice": "", "rulesets": {}, "extensions": ["geogebra"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"applet": {"name": "applet", "group": "inputs", "definition": "geogebra_applet(800,400,[A: [\"definition\": \"Plane((3,0,0),(0,-1,0),(0,0,1))\", \"color\": \"blue\"]])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "inputs", "variables": ["applet"]}], "functions": {"graphics3D": {"parameters": [["app", "ggbapplet"]], "type": "ggbapplet", "language": "javascript", "definition": "// see https://wiki.geogebra.org/en/Reference:GeoGebra_Apps_API for other commands\n\napp.promise.then(function(d) {\n d.app.setPerspective('T');\n});\nreturn new Numbas.jme.types.ggbapplet(app);\n"}}, "preamble": {"js": "", "css": ""}, "parts": [], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}]}]}], "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}]}