Activity for Asymptote

  • ollydbg ollydbg posted a comment on discussion Help

    Hi, Asymptote is a powerful language, and I have been using it for nearly 20 years. At that time, there was no HTML output and no WebGL animation support. Animations were typically created by saving a series of images and combining them into a video or GIF file. In recent years, Asymptote has added support for WebGL output, and later JavaScript-based animation. Essentially, animation can now be achieved by dynamically updating object vertices. I created an RRP robot animation using this approach,...

  • Antoine Antoine posted a comment on discussion Help

    First, thank you for this awesome project ! If the size function is not called, it looks like all points on my diagram coalesce in a very small picture. Hence, I have to call size in every asymptote file I write. I wonder if it is possible to add a default size setting to avoid this ? I tried using the size function in a file that I then imported using settings.autoimport but it had no effect, probably because size acts on currentpicture which is not the same picture as the one being produced by...

  • John Bowman John Bowman created a blog post

    Asymptote: 3.10 Released

  • John Bowman John Bowman posted a comment on discussion Help

    The 3D camera diagnostic was fixed. Support for the ncursesw library was added. Division by zero errors with empty 3D scenes were fixed. The options argument in the animation module was fixed. Integer multiplication was optimized.

  • Asymptote Asymptote released /3.10/asymptote-3.10.src.tgz

  • Asymptote Asymptote updated /README

  • Asymptote Asymptote released /3.10/asymptote.pdf

  • Asymptote Asymptote released /3.10/asymptote-3.10.x86_64.tgz

  • Asymptote Asymptote released /3.10/asymptote-3.10-setup.exe

  • Asymptote Asymptote released /3.10/README

  • Asymptote Asymptote released /3.10/asymptote-3.10-1.fc42.x86_64.rpm

  • Asymptote Asymptote released /3.10/ChangeLog

  • Asymptote Asymptote released /3.10/ReleaseNotes

  • Jim Hefferon Jim Hefferon posted a comment on discussion Help

    Thank you, John. I appreciate it.

  • John Bowman John Bowman posted a comment on discussion Help

    Ok, I now understand that you weren't using bars to indicate dimensions but to illustrate mapping. I've add this sentence in the manual: Since bars are intended for indicating precise dimensions, they should only be drawn with NoMargin (the default). It is clear from your example that you misunderstood the purpose of margins. In fact this is a good opportunity to show how they can be used to avoid ugly overlap of arrows with paths. I've attached your example, rewritten to show a poor example on the...

  • ollydbg ollydbg posted a comment on discussion Help

    Thanks for the reply. Billboard labels aren't yet supported and the scene clipping bounds have yet to be adjusted to account for animation transforms. But at least the core functionality is in the C++ code so we can now focus on updating the online AsyGL library. For now, use settings.autobillboard=false; forWebGL animations. OK, I'm using this setting now. Hopefully it will be fixed in the future. Also, when using the beginTransform function, I see that the last argument, which was bool is now removed....

  • John Bowman John Bowman posted a comment on discussion Help

    The focus on this release was TeXLive 2026, including getting the support in for WebGL animations. The animation features in the AsyGL library are a work in progress and we will continue add more functionality. Billboard labels aren't yet supported and the scene clipping bounds have yet to be adjusted to account for animation transforms. But at least the core functionality is in the C++ code so we can now focus on updating the online AsyGL library. For now, use settings.autobillboard=false; forWebGL...

  • ollydbg ollydbg posted a comment on discussion Help

    Hi, John, thanks for the recent updates and releases. Could you please look at this comment in github issue: https://github.com/vectorgraphics/asymptote/issues/535#issuecomment-3940910354 The animation in WebGL has label issues, thanks.

  • John Bowman John Bowman created a blog post

    Asymptote: 3.09 Released

  • John Bowman John Bowman posted a comment on discussion Help

    A 3D rendering bug exposed by the new default setting autoplay=true was fixed. The experimental and buggy support for OpenGL animations was removed in favour of WebGL animations.

  • Asymptote Asymptote updated /README

  • Asymptote Asymptote released /3.09/asymptote-3.09.x86_64.tgz

  • Asymptote Asymptote released /3.09/asymptote-3.09-setup.exe

  • Asymptote Asymptote released /3.09/asymptote-3.09.src.tgz

  • Asymptote Asymptote released /3.09/asymptote.pdf

  • Asymptote Asymptote released /3.09/README

  • Asymptote Asymptote released /3.09/asymptote-3.09-1.fc42.x86_64.rpm

  • Asymptote Asymptote released /3.09/ReleaseNotes

  • Asymptote Asymptote released /3.09/ChangeLog

  • John Bowman John Bowman created a blog post

    Asymptote: 3.08 Released

  • John Bowman John Bowman posted a comment on discussion Help

    Include generated GUI/xasy* files in releases. Fix and standardize make clean, distclean, and maintainer-clean.

  • Asymptote Asymptote released /3.08/asymptote-3.08-setup.exe

  • Asymptote Asymptote updated /README

  • Asymptote Asymptote released /3.08/asymptote.pdf

  • Asymptote Asymptote released /3.08/asymptote-3.08.src.tgz

  • Asymptote Asymptote released /3.08/asymptote-3.08-1.fc42.x86_64.rpm

  • Asymptote Asymptote released /3.08/README

  • Asymptote Asymptote released /3.08/asymptote-3.08.x86_64.tgz

  • Asymptote Asymptote released /3.08/ReleaseNotes

  • Asymptote Asymptote released /3.08/ChangeLog

  • John Bowman John Bowman created a blog post

    Asymptote: 3.07 Released

  • John Bowman John Bowman posted a comment on discussion Help

    A busy loop and race conditions in WebGL animations were addressed. WebGL animations are fully reversible and controlled by the autoplay setting. Build issues on legacy platforms were addressed; unused files were removed.

  • Asymptote Asymptote released /3.07/asymptote.pdf

  • Asymptote Asymptote updated /README

  • Asymptote Asymptote released /3.07/asymptote-3.07.x86_64.tgz

  • Asymptote Asymptote released /3.07/asymptote-3.07-setup.exe

  • Asymptote Asymptote released /3.07/asymptote-3.07.src.tgz

  • Asymptote Asymptote released /3.07/README

  • Asymptote Asymptote released /3.07/asymptote-3.07-1.fc42.x86_64.rpm

  • Asymptote Asymptote released /3.07/ReleaseNotes

  • Asymptote Asymptote released /3.07/ChangeLog

  • ollydbg ollydbg posted a comment on discussion Help

    Hi, John, can you looked at this comment: https://github.com/vectorgraphics/asymptote/issues/535#issuecomment-3889440719 It looks some kinds of the 3D object can be transformed, but some types are not, can you fix this issue? Thanks.

  • qavailableq qavailableq posted a comment on discussion Help

    Thanks - I was asking because these words such as "accel" occur in the manual. Presumably it is intended for an audience to which I do not belong.

  • mauvia mauvia posted a comment on discussion Help

    It is not clear to me if you are asking about the inner working of Asymptote or rather about the general use of words like velocity and acceleration in the context of geometry and drawings. Once you have a curve described as P(t), i.e. a point P in space as a function of a parameter called t we call velocity the vector which is the first derivative of function P(t) with respect to t and acceleration the second derivative of P(t) with respect to t. The names, borrowed from physics, come from the fact...

  • Erik Lim Erik Lim modified a comment on discussion Help

  • Erik Lim Erik Lim posted a comment on discussion Help

    I want to recreate the puicture like in the attachement by rotatinfg a face of the cube around his edge i'll tried this import graph3; size(6cm); triple[] V={(0,0,0), (1,0,0), (1,1,0), (0,1,0), (0,0,1), (1,0,1), (1,1,1), (0,1,1)}; draw(V[4]--V[5]--V[6]--V[7]--cycle); draw(surface(V[4]--rotate(100,(-1,0,0),V[4])*V[0]--rotate(100,(-1,0,0),V[7])*V[3]--V[7]--cycle), lightblue); but it produces smth strange, does anyone can rotate function in asy3d work for rotating around the plane

  • Erik Lim Erik Lim posted a comment on discussion Help

    I want to recreate the puicture like in the attachement by rotatinfg a face of the cube around his edge i'll tried this import graph3; size(6cm); triple[] V={(0,0,0), (1,0,0), (1,1,0), (0,1,0), (0,0,1), (1,0,1), (1,1,1), (0,1,1)}; draw(V[4]--V[5]--V[6]--V[7]--cycle); draw(surface(V[4]--rotate(100,(-1,0,0),V[4])*V[0]--rotate(100,(-1,0,0),V[7])*V[3]--V[7]--cycle), lightblue); but it produces smth strange, does anyone can rotate function in asy3d work for rotating around the plane

  • qavailableq qavailableq posted a comment on discussion Help

    For a newbie, is there an explanation of terms such as "speed", "accel", "time" For making drawings? The meaning of time-related terms here is not obvious.

  • gustaf gustaf posted a comment on discussion Help

    The example below generates a grid by means of tile. When it is converted into pdf and printed, then not all lines of the grid are of the same line thickness. Can it be avoided? Regards, ChG Hello world! \vspace{10cm} \begin{asy} import patterns; add("tile",tile(5mm,5mm,gray(0.1))); filldraw(box((0cm,0cm),(17cm,5cm)),pattern("tile")); \end{asy}

  • ollydbg ollydbg posted a comment on discussion Help

    Hi, John, thanks for the update. For quick test, the "b key" works fine in the downloaded html file. The next step is: I think I need to change my code: simple animation for rigid body movement for the webgl generated html file · Issue #535 · vectorgraphics/asymptote by using this new feature. Hopefully, there will be more asymptote 3D animation examples in the example folder. Maybe, all the existing animation code those used to generate gifs file can be translated to webgl code.

  • John Bowman John Bowman posted a comment on discussion Help

    I just updated https://asymptote.ualberta.ca/ to 3.06. The AWA front end doesn't yet pass the arrow keys to asy so you may wish to download the generated html file and view it directly in your browser. The b key display a slider bar. There are still some issues to address (like clipping planes and enforcing reversibility) but at least the support has made it into the 3.06 release for the upcoming TexLive 2026 distribution. Most if not all of the remaining issues can be incrementally addressed in...

  • ollydbg ollydbg posted a comment on discussion Help

    Preliminary support for WebGL animations was added Nice feature, thanks for your hard work. BTW: Can you update the https://asymptote.ualberta.ca/ version. I see it still runs 3.05 version. If I just paste the content of the https://github.com/vectorgraphics/asymptote/blob/master/examples/teapotAnimation.asy To this web IDE and press the run button, it will report build errors. Thanks.

  • John Bowman John Bowman created a blog post

    Asymptote: 3.06 Released

  • John Bowman John Bowman posted a comment on discussion Help

    The Xasy front end was updated to Qt6. V3D and gzipped XDR files are now supported up to size 2^64-1. Typescript was added to the AsyGL library source. Various build issues were addressed. The dependence on the boost library was removed. Preliminary support for WebGL animations was added (see the example teapotAnimation.asy).

  • Asymptote Asymptote released /3.06/asymptote-3.06.x86_64.tgz

  • Asymptote Asymptote updated /README

  • Asymptote Asymptote released /3.06/asymptote.pdf

  • Asymptote Asymptote released /3.06/asymptote-3.06.src.tgz

  • Asymptote Asymptote released /3.06/README

  • Asymptote Asymptote released /3.06/asymptote-3.06-1.fc42.x86_64.rpm

  • Asymptote Asymptote released /3.06/asymptote-3.06-setup.exe

  • Asymptote Asymptote released /3.06/ChangeLog

  • Asymptote Asymptote released /3.06/ReleaseNotes

  • Aragorn Aragorn posted a comment on discussion Help

    I found an imprecise solution : path3 g=point(v1,0)--point(v1,0.1)..point(alphaArc,0.5)..point(v2,0.1)--cycle;

  • Aragorn Aragorn posted a comment on discussion Help

    I am unable to fill in angle HIJ. import three; import math; usepackage("esvect"); size(8cm); defaultpen(fontsize(10pt)); currentprojection= orthographic(camera=(58.0940656975986,47.8173891566447,24.4233687930555), up=(-0.233710867825973,-0.175904752398278,0.956261861805506), target=(2.49999999999999,2.49999999999999,2.5), zoom=1,center=false); pen style1 = linetype("4 4"); real a = 5; triple A = (a,0,0), B = (a,a,0), C = (0,a,0), D = (0,0,0), Ep = (a,0,a), F = (a,a,a), G = (0,a,a), H = (0,0,a);...

  • Erik Lim Erik Lim posted a comment on discussion Help

    I'm trying to add a 2d image into a 3d graph using this https://tex.stackexchange.com/questions/167164/inserting-graphics-into-asymptote-or-pgfplots/167355#167355 but when i do this it creates 2 separate images one at the center and one at the coordinates (in 2 plane haven't work out yet) did anyone know how to do this. label(graphics(), triple) gets insane so i used regular points instead and setting settings.inlineimage=false; don't help at all if(!settings.multipleView) settings.batchView=false;...

  • Jon Joseph Jon Joseph modified a comment on discussion Help

    In this example taken from the Asymptote Gallery page: real margin=3.5mm; path s = (0,0)--(1,0)--(0,1)--cycle; object left=align(object("$x^2$",ellipse,margin),W); add(left); object right=align(object("$\sin x$", box, margin),4E); add(right); //draw(scale(3)*s); //object center = align(object(s, margin)); //add(center); add(new void(frame f, transform t) { draw(f,point(left,NE,t)--point(right,W,t)); }); I'm led to believe that object takes a label, a path and a real. However, when I put a path like...

  • Jon Joseph Jon Joseph posted a comment on discussion Help

    In this example taken from the Asymptote Gallery page: real margin=3.5mm; path s = (0,0)--(1,0)--(0,1)--cycle; object left=align(object("$x^2$",ellipse,margin),W); add(left); object right=align(object("$\sin x$", box, margin),4E); add(right); //draw(scale(3)*s); //object center = align(object(s, margin)); //add(center); add(new void(frame f, transform t) { draw(f,point(left,NE,t)--point(right,W,t)); }); I'm lead to believe that object takes a label, a path and a real. However, when I put a path like...

  • ollydbg ollydbg posted a comment on discussion Help

    OK, I solved the problem myself, its my mistake. In the config.asy file, I have to change those 3 paths to the new texlive 2025 path. Here is the correct 3 values: texpath = "E:\texlive\2025\bin\windows"; dvips="E:\texlive\2025\bin\windows\dvips.exe"; dvisvgm="E:\texlive\2025\bin\windows\dvisvgm.exe"; My mistake is that I only changed the first texpath to point to the texlive 2025 path, but leave the last 2 lines point to the wrong value.

  • Theodore Mavroidis Theodore Mavroidis posted a comment on discussion Help

    I have created a simple test file where I am trying to connect the top and bottom of two roundrectangle boxes. size(300,100); import flowchart; usepackage("bm"); block test=roundrectangle("$\bm{x}_1$",center=(0,0),ds=2,dw=0, minheight=1); draw(test); block att=roundrectangle("attention",center=(0,5),ds=2,dw=0, minheight=1); draw(att); add(new void(frame f, transform t) { picture pic; dot(pic,test.top()); dot(pic,att.bottom(),red); add(f,pic.fit()); }); For some reason test.top() generates a dot at...

  • ollydbg ollydbg modified a comment on discussion Help

    Hi, I recently install the latest Tex Live 2025, but I'm not fully install it, I just choose a basic install(if I remember correctly). So when building tex files, I may need to install the packages manually. But when I call the asymptote to build an asy file, I see some error: C:\Program Files\Asymptote\asy.exe --keep pipes.asy -f html -v -V Process started (PID=4544) >>> Processing pipes t1 = 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 t2 = 0.939692620785908 0 -0.342020143325669 -0.684040286651337 0 1 0 3 0.342020143325669...

  • ollydbg ollydbg modified a comment on discussion Help

    Hi, I recently install the latest Tex Live 2025, but I'm not fully install it, I just choose a basic install(if I remember correctly). So when building tex files, I may need to install the packages manually. But when I call the asymptote to build an asy file, I see some error: C:\Program Files\Asymptote\asy.exe --keep pipes.asy -f html -v -V Process started (PID=4544) >>> Processing pipes t1 = 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 t2 = 0.939692620785908 0 -0.342020143325669 -0.684040286651337 0 1 0 3 0.342020143325669...

  • ollydbg ollydbg posted a comment on discussion Help

    Hi, I recently install the latest Tex Live 2025, but I'm not fully install it, I just choose a basic install(if I remember correctly). So when building tex files, I may need to install the packages manually. But when I call the asymptote to build an asy file, I see some error: C:\Program Files\Asymptote\asy.exe --keep pipes.asy -f html -v -V Process started (PID=4544) >>> Processing pipes t1 = 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 t2 = 0.939692620785908 0 -0.342020143325669 -0.684040286651337 0 1 0 3 0.342020143325669...

  • mauvia mauvia posted a comment on discussion Help

    I tried your code and if I change the parameters corresponding to the semiaxes of the ellipse the shape changes accordingly. I do not see any issue. I use asymptote 3.05 on MacOs. Maurizio Il giorno venerdì 2 gennaio 2026 alle ore 17:23:23 CET, qavailableq qavailableq@users.sourceforge.net ha scritto: What if you change the dimensions, the second or third argument of "ellipse"? I find that this has no effect. Output and scaling Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/asymptote/discussion/409349/...

  • qavailableq qavailableq posted a comment on discussion Help

    What if you change the dimensions, the second or third argument of "ellipse"? I find that this has no effect.

  • mauvia mauvia posted a comment on discussion Help

    Whichever way I run this code I get an output which is perfect. An image of the half ellipse with the right scaling and all that. Maurizio Il giorno venerdì 2 gennaio 2026 alle ore 10:09:50 CET, qavailableq qavailableq@users.sourceforge.net ha scritto: The code suggested to me for drawing a half-ellipse was: size(250); path P = ellipse((0,0), 2, 1); // Full ellipse centered at (0,0) with semi-axes 2 and 1 path Q = subpath(P, 0, reltime(P, 0.5)); // Get the first half of the path (0 to 50% relative...

  • qavailableq qavailableq posted a comment on discussion Help

    The code suggested to me for drawing a half-ellipse was: size(250); path P = ellipse((0,0), 2, 1); // Full ellipse centered at (0,0) with semi-axes 2 and 1 path Q = subpath(P, 0, reltime(P, 0.5)); // Get the first half of the path (0 to 50% relative time) draw(Q); // Add the connecting line to close the shape (optional) draw(point(Q, 0) -- point(Q, length(Q))); Output is presumably a whole different subject. I will investigate further.

  • Charles Staats Charles Staats posted a comment on discussion Help

    It would be very helpful to see the Asymptote code you are trying to run. Are you using any size or unitsize command? If the former, then you probably want to pass it the parameter keepAspect=true. If you find the manual's explanation unclear, you might also look at Section 2.1 starting on page 6 of my tutorial. It's also possible there's an issue in how you are specifying the ellipse, as well as other possibilities. Again, seeing your Asymptote code would be helpful.

  • qavailableq qavailableq posted a comment on discussion Help

    As a beginner I find that an ellipse is the same shape however I specify the ratio between the axes. Presumably the program is scaling the output, with x and y dimensions being treated independently. Is there a discussion anywhere guiding the user on this kind of issue? At first I saw renderings of EPS files on the Windows 10 screen. Windows 10 has since decided to launch EPS files with Gimp, but the same issue persists. I don't know what Windows 10 was using prior to this. I would like to be able...

  • Michael Doob Michael Doob posted a comment on discussion Help

    For most Asymptote users the difference can be ignored. It is part of the C++ language in which asymptote is written. But if you really want to know, consider the following two functions: real f1(real R) {return 2R;} real f2(explicit real R) {return 2R;} int k=1; write(f1(k)); write(f2(k)); The function f1 returns the real value 2; the variable k is cast from an integer to a real and then evaluated. The use of explicit in the function f2 forbids this casting and hence throws an error.

  • qavailableq qavailableq posted a comment on discussion Help

    On types, what is the difference between a "pair" and an "explicit pair"?

  • qavailableq qavailableq posted a comment on discussion Help

    Many thanks, I'll work on understanding this.

  • Michael Doob Michael Doob posted a comment on discussion Help

    I now see your exact problem. In passing, your math background is fine for this situation. Asymptote has many tools available, and sometimes finding and properly using the right one can be daunting. The following code sample uses tools that will, hopefully, allow you to complete the figure you want. size(3cm); pair A=(0,0), B=(1,0), C=(1,1), D=(0,1); path P1=arc(A,1,0,90), P2=arc(B,1,180,0); draw(P1^^P2); real t=intersect(P1,P2)[0]; //write(t); draw(subpath(P1,0,t),green+linewidth(2)); dot(point(P1,0),blue);dot(point(P1,t),red);dot(point(P1,1),purple);...

  • qavailableq qavailableq posted a comment on discussion Help

    Thanks - I was looking for a way of drawing a subpath from the intersection of two curves to the end of one of the curves. I don't think I will pursue this as I only have maths to O level.

  • Michael Doob Michael Doob posted a comment on discussion Help

    If "intersects once" means "intersects exactly once", then pair Ipoint=intersectionpoint(P1,P2); will give you the point of intersection of paths P1 and P2. An example: size(5cm); pair A=(0,0), B=(2,0), C=(1,1), D=(0,2), E=(1,1); path P1=arc((1,1),1,90,180), P2=D--C; pair Ipoint=intersectionpoint(P1,P2); draw(Ipoint--E,green+linewidth(2)); draw(P1^^P2); dot(Ipoint,red);

  • Charles Staats Charles Staats posted a comment on discussion Help

    I suspect you want real[] intersect(path p, path q, real fuzz=-1); If p and q have at least one intersection point, return a real array of length 2 containing the times representing the respective path times along p and q, in the sense of point(path, real), for one such intersection point.... If the paths do not intersect, return a real array of length 0. So, something like this (untested): real t = intersect(p, q)[0]; path psub = subpath(p, t, length(p));

  • qavailableq qavailableq posted a comment on discussion Help

    Thanks - something like that, I expect.

  • Michael Doob Michael Doob posted a comment on discussion Help

    Is pair intersectionpoint(path p, path q, real fuzz=-1); from https://asymptote.sourceforge.io/doc/Paths-and-guides.html the tool you need?

  • qavailableq qavailableq posted a comment on discussion Help

    I have two open paths where one intersects the other once. Is there a way of drawing a subpath of one path from the intersection to the end of that path?

  • Michael Doob Michael Doob posted a comment on discussion Help

    From https://asymptote.sourceforge.io/doc/LaTeX-usage.html : As with the LaTeX comment environment, the \end{asy} command must appear on a line by itself, with no trailing commands/comments. A blank line is not allowed after \begin{asy}.

1 >
MongoDB Logo MongoDB