Je suis un peu coincé avec asymptote pour faire des figures 3D.
Le code suivant produit une erreur à la noix (texlive 2018, asymptote 2.44).
Code : Tout sélectionner
import graph3;
import grid3;
import palette;
currentprojection=orthographic(0.8,1,1);
size(400,300,IgnoreAspect);
defaultrender.merge=true;
real f(pair z) {return cos(2*pi*z.x)*sin(2*pi*z.y);}
surface s=surface(f,(-1/2,-1/2),(1/2,1/2),50,Spline);
draw(s,mean(palette(s.map(zpart),Rainbow())),black);
grid3(XYZgrid);
Code : Tout sélectionner
asy -V -wait "essai"
/usr/local/texlive/2018/texmf-dist/asymptote/three.asy: 2905.13: Singular matrix
terminate called after throwing an instance of 'handled_error'
Code : Tout sélectionner
asy -V -glOptions=-indirect -render=-1 essai.asy
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 30
Current serial number in output stream: 31
Olivier