C'est un bogue connu, que j'ai signalé à John en février mais qui avait déjà été signalé
Thanks, I know about that one. The cvgmt group reported that here
https://sourceforge.net/projects/asympt ... ic/3493367It's not too hard to fix, but I haven't had time, sorry.
The latticeshade bug appeared when svg support was added in 1.89, so
you'll have to use version 1.88 on this example for the time being.
Avec la version 1.87 et le code suivant (geometry.asy n'existait dans cette version, je crois)…
Code : Tout sélectionner
size(7cm,0);
path chemin=(0,0){dir(45)}..(1,0)..(1,.5)..(1.5,1)..(0,1)..cycle;
pen stylo1=red, stylo2=blue;
pair p1=(0.5,0.5), p2=(0.5,0.8);
real r1=.5, r2=0.6;
path c1=circle(p1,r1), c2=circle(p2,r2);
radialshade(chemin,stylo1,p1,r1,stylo2,p2,r2);
draw(chemin);
dot(chemin);
draw(c1^^c2,1bp+dashed);
dot(p1^^p2,4bp+green);
…j'obtiens la figure ci-dessous, qui me semble correcte.
- essai.png (27.19 Kio) Vu 8747 fois