Dear Maintainer,
In trying to plot any 3D surface using sagemath and the default 3D
viewer (three.js) the HTML plot page is generated and a new browser
tab is opened however no plot is shown. The three.js tab does have
a menu icon that works, also the source code of the generated HTML
page and page source looks reasonable including the plotting code.
In the browser debug console only one error is shown. This error is
Uncaught ReferenceError: THREE is not defined
<anonymous> file:///.../.sage/.../tmp_t5mlfrwr.html:49
The line referenced by the error is
var scene = new THREE.Scene();
I do see such a variable THREE defined globally in the
However the script included in the sagemath plot is
<script src="/usr/share/javascript/three/r122/three.min.js"></script>
It seems the path to three.min.js should not include "r122". I am not
sure why this is happening.
If a manually edit the tmp_t5mlfrwr.html file and remove the "r122"
then the plot screen becomes black (previously it was white) and
the error message is now different (shown below)
Uncaught TypeError: THREE.MathUtils is undefined
addLabel file:///.../.sage/.../tmp_oznfc_be.html:208
<anonymous> file:///.../.sage/.../tmp_oznfc_be.html:155
This is how far I can dig.