Bon quelques semaines plus tard. J'ai réussi à installer asymptote 2.47. Je l'ai installé dans ~/asympote, sous ubuntu 16.04.
Mais le programme suivant plante.
Code : Tout sélectionner
import graph3 ;
import math ;
import geometry ;
import three ;
import solids ;
usepackage("calrsfs") ;
import interpolate ;
unitsize(1cm,1cm) ;
currentprojection=orthographic(
camera=(-76.4677529054524,-74.3453310068684,32.4093212156294),
up=(0.00902912397708471,0.00539252162381016,0.0336737252227827),
target=(5.6843418860808e-14,-1.4210854715202e-14,-7.46069872548105e-14),
zoom=0.746215396636627);
triple pA = (1.5,0,0) ;
triple pB = (-1,3,0) ;
triple pC = (-4,3,0) ;
triple pD = (-2,-3,0) ;
triple pS = (0,2,7) ;
label("$A$",pA,S) ;
label("$B$",pB,S) ;
label("$C$",pC,S) ;
label("$D$",pD,S) ;
label("$S$",pS,N) ;
path3[] aretes = {pA--pB--pC--pD--cycle,
pS--pA--pB--cycle,
pS--pB--pC--cycle,
pS--pC--pD--cycle,
pS--pD--pA--cycle} ;
surface pyra = surface(aretes) ;
draw(aretes,red+linewidth(1bp)) ;
draw(pyra,blue+opacity(0.5)) ;
Et voilà le log de asy -vv espace_014.asy
Code : Tout sélectionner
asy -vv espace_014.asy
Using configuration directory /home/olivier/.asy
Loading config.asy from /home/olivier/.asy/config.asy
Using history /home/olivier/.asy/history
Welcome to Asymptote version 2.47
cd /home/olivier/Documents/Doctex/Ecole/CdT/Seconde/Semaine_12
Processing espace_014
Loading plain from /home/olivier/asymptote/share/asymptote/plain.asy
Including plain_constants from /home/olivier/asymptote/share/asymptote/plain_constants.asy
Loading version from /home/olivier/asymptote/share/asymptote/version.asy
Including plain_strings from /home/olivier/asymptote/share/asymptote/plain_strings.asy
Including plain_pens from /home/olivier/asymptote/share/asymptote/plain_pens.asy
Including plain_paths from /home/olivier/asymptote/share/asymptote/plain_paths.asy
Including plain_filldraw from /home/olivier/asymptote/share/asymptote/plain_filldraw.asy
Including plain_margins from /home/olivier/asymptote/share/asymptote/plain_margins.asy
Including plain_picture from /home/olivier/asymptote/share/asymptote/plain_picture.asy
Loading plain_scaling from /home/olivier/asymptote/share/asymptote/plain_scaling.asy
Loading simplex from /home/olivier/asymptote/share/asymptote/simplex.asy
Loading plain_bounds from /home/olivier/asymptote/share/asymptote/plain_bounds.asy
Including plain_scaling from /home/olivier/asymptote/share/asymptote/plain_scaling.asy
Including plain_prethree from /home/olivier/asymptote/share/asymptote/plain_prethree.asy
Including plain_Label from /home/olivier/asymptote/share/asymptote/plain_Label.asy
Including plain_shipout from /home/olivier/asymptote/share/asymptote/plain_shipout.asy
Including plain_arcs from /home/olivier/asymptote/share/asymptote/plain_arcs.asy
Including plain_boxes from /home/olivier/asymptote/share/asymptote/plain_boxes.asy
Including plain_markers from /home/olivier/asymptote/share/asymptote/plain_markers.asy
Including plain_arrows from /home/olivier/asymptote/share/asymptote/plain_arrows.asy
Including plain_debugger from /home/olivier/asymptote/share/asymptote/plain_debugger.asy
Loading espace_014.asy from espace_014.asy
Loading graph3 from /home/olivier/asymptote/share/asymptote/graph3.asy
Loading math from /home/olivier/asymptote/share/asymptote/math.asy
Loading graph from /home/olivier/asymptote/share/asymptote/graph.asy
Loading graph_splinetype from /home/olivier/asymptote/share/asymptote/graph_splinetype.asy
Loading graph_settings from /home/olivier/asymptote/share/asymptote/graph_settings.asy
Loading three from /home/olivier/asymptote/share/asymptote/three.asy
Loading embed from /home/olivier/asymptote/share/asymptote/embed.asy
Including three_light from /home/olivier/asymptote/share/asymptote/three_light.asy
Including three_surface from /home/olivier/asymptote/share/asymptote/three_surface.asy
Loading bezulate from /home/olivier/asymptote/share/asymptote/bezulate.asy
Loading interpolate from /home/olivier/asymptote/share/asymptote/interpolate.asy
Including three_margins from /home/olivier/asymptote/share/asymptote/three_margins.asy
Including three_tube from /home/olivier/asymptote/share/asymptote/three_tube.asy
Including three_arrows from /home/olivier/asymptote/share/asymptote/three_arrows.asy
Loading geometry from /home/olivier/asymptote/share/asymptote/geometry.asy
Loading markers from /home/olivier/asymptote/share/asymptote/markers.asy
Loading solids from /home/olivier/asymptote/share/asymptote/solids.asy
latex \scrollmode
latex -output-format=dvi \nonstopmode\input espace_014_.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
LaTeX2e <2018-04-01> patch level 5
(./espace_014_.tex
(/usr/local/texlive/2018/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2018/texmf-dist/tex/latex/base/size12.clo))
(/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics-def/dvips.def)))
(/usr/local/texlive/2018/texmf-dist/tex/latex/calrsfs/calrsfs.sty)
No file espace_014_.aux.
(/usr/local/texlive/2018/texmf-dist/tex/latex/calrsfs/OMSrsfs.fd) [1] [2]
[3] [4] [5] (./espace_014_.aux) )
Output written on espace_014_.dvi (5 pages, 3772 bytes).
Transcript written on espace_014_.log.
dvips -R -Pdownload35 -D600 -q -oespace_014_.ps espace_014_.dvi
gs -q -dBATCH -P -dSAFER -sDEVICE=eps2write -sOutputFile=/dev/null espace_014_.ps
Exporting espace_014 as 708x1000 image using tiles of size 708x500
/home/olivier/asymptote/share/asymptote/three.asy: 2906.13: runtime:
runtime à la fin (il n'y a rien d'autre). La 2D fonctionne bien, en même temps three.asy c'est bien pour la 3D.
Au passage je préférerais faire du pdf, mais bon, je pourrais faire sans.
Olivier
A line is a point that went for a walk. Paul Klee.
Par solidarité, pas de MP.