JavaScript API 3D

Diego Rey Despaux shared this question 4 years ago
Answered

Hello, I'm interested in using Geogebra in a personal site through the JavaScript API, but in the documentation I can't find how I can represent an object in 3D through this API. Can someone help me with an example of this? Thank you.

Diego

Comments (2)

photo
1

ggbApplet.evalCommand('P=(1,2,3)');

photo
1

Hi Michael, this doesn't work to me. I'm doing this:

<input type="button" value="Do construction" onclick="initGeoGebra();">
<article class="geogebraweb" data-param-width="500" data-param-height="500" data-param-ggbbase64="..."></article>

<script type="text/javascript" language="javascript" src="http://www.geogebra.org/web...;
<script type="text/javascript">
  function initGeoGebra() {
    var applet = document.ggbApplet;
    applet.evalCommand('P=(1,2,3)');
  }
</script>

© 2023 International GeoGebra Institute