• asymptote


    settings.outformat="pdf";
    settings.render=0;
    
    import three;
    size(4cm);
    draw(-2X--2X,arrow=Arrow3(emissive(black)));
    draw(-2Y--2Y, arrow=Arrow3(emissive(black)));
    draw(-2Z--2Z, arrow=Arrow3(emissive(black)));
    draw(path3(box((-2,-2),(2,2))), gray);
    draw(arc(c=O, Y, Z), blue, arrow = Arrow3(TeXHead2,emissive(blue)));
    draw(arc(c=O, -Y, Z), blue, arrow = Arrow3(TeXHead2,emissive(blue)));
    draw(arc(c=(1,1,0), Y, 2X, normal=Z), green, arrow =Arrow3(TeXHead2(normal=Z), emissive(green)));
    draw(arc(c=(1,1,0), Y, 2X, normal=-Z), red, arrow =Arrow3(TeXHead2(normal=Z), emissive(red)));

    settings.outformat="pdf";
    settings.prc=false;
    settings.render=0;
    
    import graph3;
    size(4cm,0);
    
    path3 myarc = rotate(18,Z) * Arc(c=O,normal=X, v1=-Z, v2=Z, n=10);
    surface backHemisphere =surface(myarc, angle1=0,angle2=180, c=O, axis=Z, n=10);
    surface frontHemisphere = surface(myarc, angle1=180,angle2=360, c=O, axis=Z, n=10);
    draw(backHemisphere, surfacepen=material(white+opacity(0.8),ambientpen=white), meshpen=gray(0.4));
    draw(O--X, blue+linewidth(1pt));
    draw(frontHemisphere, surfacepen=material(white+opacity(0.8),ambientpen=white), meshpen=gray(0.4));

    https://math.uchicago.edu/~cstaats/Charles_Staats_III/Notes_and_papers_files/asymptote_tutorial.pdf

    https://github.com/vectorgraphics/asymptote

  • 相关阅读:
    hdu4597 Play Game DP
    poj2253 Frogger Dijkstra变形
    poj1797 Heavy Transportation Dijkstra算法的简单应用
    49.将手机收藏信息保存到文件中
    48.XML保存衣服尺码信息
    47.多客户端用户登录
    46. 模拟用户登录的功能
    45.客户咨询问题
    44. 客户端发送信息给服务器端
    43.创建线程的两种方法
  • 原文地址:https://www.cnblogs.com/Searchor/p/13098923.html
Copyright © 2020-2023  润新知