What is the difference between settings.render=10 and settings.render=15 in the following examples?












1















Both examples in ASY_3D.pdf



documentclass[border=5pt,varwidth]{standalone}
usepackage{asymptote}

begin{document}

begin{asy}
settings.outformat="png";
// settings.render=10; //<<<----
settings.prc=false;

import graph3;
import contour;
size(7.5cm,0);
size3(7.5cm,IgnoreAspect);
currentprojection=orthographic(-6,-20,600);
currentlight=White;
limits((0,0,0),(10,10,300));
xaxis3(OutTicks(Step=2));
yaxis3(OutTicks(Step=5));
zaxis3(Bounds(Min,Max),InTicks(Step=100,Label(align=-X),NoZero));
real f(pair z) {return 2z.x^2-z.x+z.y^2;}
draw(surface(f,(0,0),(10,10),nx=10,Spline),lightgray,meshpen=black);
path p1=(5,1)--(9,1)--(9,4)--(5,4)--cycle,
p2=(4,0)--(0,8),
p3;
for(int i=0; i<=10;++i) p3=p3..point(p2,i/10);
guide tabgui={{p1,p2,p3}};
draw(lift(f,tabgui),1bp+red);
draw(path3(p1),1bp+.8green);
draw(path3(p2),1bp+.8purple);
draw(extrude(p1,axis=200Z),blue+opacity(.75));
end{asy}

end{document}


With settings.render=10; it produces a figure about 500KB



enter image description here



But with settings.render=15; it produces a figure about 894KB



enter image description here



See the following example:



documentclass[border=5pt,varwidth]{standalone}
usepackage{asymptote}

begin{document}

begin{asy}
settings.outformat="png";
settings.render=15;
settings.prc=false;

import graph3;
currentprojection=orthographic(1,-2,1);
currentlight=(1,-1,0.5);
size(7cm,0);
real f(pair z) {return abs(z)^2;}
path3 gradient(pair z) {
static real dx=sqrtEpsilon, dy=dx;
return O--((f(z+dx)-f(z-dx))/2dx,
(f(z+I*dy)-f(z-I*dy))/2dy,0);}
pair a=(-1,-1);
pair b=(1,1);
triple F(pair z) {return (z.x,z.y,0);}
add(vectorfield(gradient,F,a,b,red));
draw(surface(f,a,b,Spline),gray+opacity(0.5));
xaxis3(XY()*"$x$",OutTicks(XY()*Label));
yaxis3(XY()*"$y$",InTicks(YX()*Label));
zaxis3("$z$",OutTicks);
end{asy}

end{document}


With settings.render=15; it produces a figure about 646KB



enter image description here



With settings.render=10; it produces a figure about 307KB



enter image description here



Can you explain to me the reason of this case?










share|improve this question







New contributor




New user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    1















    Both examples in ASY_3D.pdf



    documentclass[border=5pt,varwidth]{standalone}
    usepackage{asymptote}

    begin{document}

    begin{asy}
    settings.outformat="png";
    // settings.render=10; //<<<----
    settings.prc=false;

    import graph3;
    import contour;
    size(7.5cm,0);
    size3(7.5cm,IgnoreAspect);
    currentprojection=orthographic(-6,-20,600);
    currentlight=White;
    limits((0,0,0),(10,10,300));
    xaxis3(OutTicks(Step=2));
    yaxis3(OutTicks(Step=5));
    zaxis3(Bounds(Min,Max),InTicks(Step=100,Label(align=-X),NoZero));
    real f(pair z) {return 2z.x^2-z.x+z.y^2;}
    draw(surface(f,(0,0),(10,10),nx=10,Spline),lightgray,meshpen=black);
    path p1=(5,1)--(9,1)--(9,4)--(5,4)--cycle,
    p2=(4,0)--(0,8),
    p3;
    for(int i=0; i<=10;++i) p3=p3..point(p2,i/10);
    guide tabgui={{p1,p2,p3}};
    draw(lift(f,tabgui),1bp+red);
    draw(path3(p1),1bp+.8green);
    draw(path3(p2),1bp+.8purple);
    draw(extrude(p1,axis=200Z),blue+opacity(.75));
    end{asy}

    end{document}


    With settings.render=10; it produces a figure about 500KB



    enter image description here



    But with settings.render=15; it produces a figure about 894KB



    enter image description here



    See the following example:



    documentclass[border=5pt,varwidth]{standalone}
    usepackage{asymptote}

    begin{document}

    begin{asy}
    settings.outformat="png";
    settings.render=15;
    settings.prc=false;

    import graph3;
    currentprojection=orthographic(1,-2,1);
    currentlight=(1,-1,0.5);
    size(7cm,0);
    real f(pair z) {return abs(z)^2;}
    path3 gradient(pair z) {
    static real dx=sqrtEpsilon, dy=dx;
    return O--((f(z+dx)-f(z-dx))/2dx,
    (f(z+I*dy)-f(z-I*dy))/2dy,0);}
    pair a=(-1,-1);
    pair b=(1,1);
    triple F(pair z) {return (z.x,z.y,0);}
    add(vectorfield(gradient,F,a,b,red));
    draw(surface(f,a,b,Spline),gray+opacity(0.5));
    xaxis3(XY()*"$x$",OutTicks(XY()*Label));
    yaxis3(XY()*"$y$",InTicks(YX()*Label));
    zaxis3("$z$",OutTicks);
    end{asy}

    end{document}


    With settings.render=15; it produces a figure about 646KB



    enter image description here



    With settings.render=10; it produces a figure about 307KB



    enter image description here



    Can you explain to me the reason of this case?










    share|improve this question







    New contributor




    New user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      1












      1








      1








      Both examples in ASY_3D.pdf



      documentclass[border=5pt,varwidth]{standalone}
      usepackage{asymptote}

      begin{document}

      begin{asy}
      settings.outformat="png";
      // settings.render=10; //<<<----
      settings.prc=false;

      import graph3;
      import contour;
      size(7.5cm,0);
      size3(7.5cm,IgnoreAspect);
      currentprojection=orthographic(-6,-20,600);
      currentlight=White;
      limits((0,0,0),(10,10,300));
      xaxis3(OutTicks(Step=2));
      yaxis3(OutTicks(Step=5));
      zaxis3(Bounds(Min,Max),InTicks(Step=100,Label(align=-X),NoZero));
      real f(pair z) {return 2z.x^2-z.x+z.y^2;}
      draw(surface(f,(0,0),(10,10),nx=10,Spline),lightgray,meshpen=black);
      path p1=(5,1)--(9,1)--(9,4)--(5,4)--cycle,
      p2=(4,0)--(0,8),
      p3;
      for(int i=0; i<=10;++i) p3=p3..point(p2,i/10);
      guide tabgui={{p1,p2,p3}};
      draw(lift(f,tabgui),1bp+red);
      draw(path3(p1),1bp+.8green);
      draw(path3(p2),1bp+.8purple);
      draw(extrude(p1,axis=200Z),blue+opacity(.75));
      end{asy}

      end{document}


      With settings.render=10; it produces a figure about 500KB



      enter image description here



      But with settings.render=15; it produces a figure about 894KB



      enter image description here



      See the following example:



      documentclass[border=5pt,varwidth]{standalone}
      usepackage{asymptote}

      begin{document}

      begin{asy}
      settings.outformat="png";
      settings.render=15;
      settings.prc=false;

      import graph3;
      currentprojection=orthographic(1,-2,1);
      currentlight=(1,-1,0.5);
      size(7cm,0);
      real f(pair z) {return abs(z)^2;}
      path3 gradient(pair z) {
      static real dx=sqrtEpsilon, dy=dx;
      return O--((f(z+dx)-f(z-dx))/2dx,
      (f(z+I*dy)-f(z-I*dy))/2dy,0);}
      pair a=(-1,-1);
      pair b=(1,1);
      triple F(pair z) {return (z.x,z.y,0);}
      add(vectorfield(gradient,F,a,b,red));
      draw(surface(f,a,b,Spline),gray+opacity(0.5));
      xaxis3(XY()*"$x$",OutTicks(XY()*Label));
      yaxis3(XY()*"$y$",InTicks(YX()*Label));
      zaxis3("$z$",OutTicks);
      end{asy}

      end{document}


      With settings.render=15; it produces a figure about 646KB



      enter image description here



      With settings.render=10; it produces a figure about 307KB



      enter image description here



      Can you explain to me the reason of this case?










      share|improve this question







      New contributor




      New user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      Both examples in ASY_3D.pdf



      documentclass[border=5pt,varwidth]{standalone}
      usepackage{asymptote}

      begin{document}

      begin{asy}
      settings.outformat="png";
      // settings.render=10; //<<<----
      settings.prc=false;

      import graph3;
      import contour;
      size(7.5cm,0);
      size3(7.5cm,IgnoreAspect);
      currentprojection=orthographic(-6,-20,600);
      currentlight=White;
      limits((0,0,0),(10,10,300));
      xaxis3(OutTicks(Step=2));
      yaxis3(OutTicks(Step=5));
      zaxis3(Bounds(Min,Max),InTicks(Step=100,Label(align=-X),NoZero));
      real f(pair z) {return 2z.x^2-z.x+z.y^2;}
      draw(surface(f,(0,0),(10,10),nx=10,Spline),lightgray,meshpen=black);
      path p1=(5,1)--(9,1)--(9,4)--(5,4)--cycle,
      p2=(4,0)--(0,8),
      p3;
      for(int i=0; i<=10;++i) p3=p3..point(p2,i/10);
      guide tabgui={{p1,p2,p3}};
      draw(lift(f,tabgui),1bp+red);
      draw(path3(p1),1bp+.8green);
      draw(path3(p2),1bp+.8purple);
      draw(extrude(p1,axis=200Z),blue+opacity(.75));
      end{asy}

      end{document}


      With settings.render=10; it produces a figure about 500KB



      enter image description here



      But with settings.render=15; it produces a figure about 894KB



      enter image description here



      See the following example:



      documentclass[border=5pt,varwidth]{standalone}
      usepackage{asymptote}

      begin{document}

      begin{asy}
      settings.outformat="png";
      settings.render=15;
      settings.prc=false;

      import graph3;
      currentprojection=orthographic(1,-2,1);
      currentlight=(1,-1,0.5);
      size(7cm,0);
      real f(pair z) {return abs(z)^2;}
      path3 gradient(pair z) {
      static real dx=sqrtEpsilon, dy=dx;
      return O--((f(z+dx)-f(z-dx))/2dx,
      (f(z+I*dy)-f(z-I*dy))/2dy,0);}
      pair a=(-1,-1);
      pair b=(1,1);
      triple F(pair z) {return (z.x,z.y,0);}
      add(vectorfield(gradient,F,a,b,red));
      draw(surface(f,a,b,Spline),gray+opacity(0.5));
      xaxis3(XY()*"$x$",OutTicks(XY()*Label));
      yaxis3(XY()*"$y$",InTicks(YX()*Label));
      zaxis3("$z$",OutTicks);
      end{asy}

      end{document}


      With settings.render=15; it produces a figure about 646KB



      enter image description here



      With settings.render=10; it produces a figure about 307KB



      enter image description here



      Can you explain to me the reason of this case?







      asymptote






      share|improve this question







      New contributor




      New user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      New user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      New user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 10 mins ago









      New userNew user

      262




      262




      New contributor




      New user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      New user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      New user is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          New user is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f470811%2fwhat-is-the-difference-between-settings-render-10-and-settings-render-15-in-the%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          New user is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          New user is a new contributor. Be nice, and check out our Code of Conduct.













          New user is a new contributor. Be nice, and check out our Code of Conduct.












          New user is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f470811%2fwhat-is-the-difference-between-settings-render-10-and-settings-render-15-in-the%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Accessing regular linux commands in Huawei's Dopra Linux

          Can't connect RFCOMM socket: Host is down

          Kernel panic - not syncing: Fatal Exception in Interrupt