Reputation
11,208
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
4 36 90
Newest
 Necromancer
Impact
~336k people reached

Apr
28
comment Draw a 3D SrTiO3 structure
As the author of the drawRod function in question, I apologize for the oversight. Normally it handles the order of points just fine, but it needs (and does not currently have) special treatment when the rod is parallel to the Z axis.
Apr
27
awarded  Necromancer
Apr
17
comment Sublime Text 3 with LaTeXTools failed to handle tex with asymptote
Note that latexmk can run the asy commands itself if you include the contents of raw.githubusercontent.com/vectorgraphics/asymptote/master/doc/… in a file called latexmkrc in the directory from which the command is run.
Apr
15
awarded  Nice Answer
Apr
12
awarded  Good Answer
Apr
9
answered Asymptote slopefield
Apr
6
comment Patterns in SVG
Nice! I was thinking of just for (...) draw(...); clip(...); (not inside a function), but you've made a general solution that doesn't have to be re-done every time.
Apr
5
comment Patterns in SVG
Note that patterns (especially simple ones like hatch) are generally not used much in Asymptote because "implementing them from scratch" with a for loop is quite easy (about 3 lines, in the case of the hatch pattern). (Actually the same is true of TikZ except that it drastically increases compilation times, which is not the case for Asymptote.)
Apr
5
comment Patterns in SVG
@AFeldman: Asymptote and metapost questions are generally considered on-topic.
Apr
3
awarded  Nice Answer
Apr
1
comment How to embed Asymptote 3D objects in Latex code when using Overleaf?
Additional note: the effect of settings.prc = false; is precisely to disable the creation of 3d prc objects. Also, settings.output should be settings.outformat.
Mar
30
comment using Asymptote with Miktek, Texmaker, Windows7, ASYalign undefined
Or, to download the dtx file directly from github: raw.githubusercontent.com/vectorgraphics/asymptote/master/doc/…
Mar
30
comment using Asymptote with Miktek, Texmaker, Windows7, ASYalign undefined
Where to get the file (currently version 1.30, as desired): mirrors.ctan.org/graphics/asymptote/doc/asymptote.sty Once you get the sty file, install it following this answer: tex.stackexchange.com/a/2066/484
Mar
26
comment Force acrobat to render asymptote's figure with antialias
Is the interactive functionality important to you? If not, you could add the -noprc flag to the asy compilation.
Mar
18
comment Search an element in array in Asymptote
find(a == 3) returns 2, the index of the first occurrence of 3 in a. find(a == 3) > 0 returns true iff a contains 3.
Mar
18
revised Search an element in array in Asymptote
improved formatting
Mar
16
awarded  Necromancer
Mar
6
comment Asymptote Shading Gradient in HSV Color Space
If you're really determined to do it all in one area, you can specify the gradient as a postscript function (asymptote.sourceforge.net/gallery/functionshading.asy), but this will be slow to render. A probably better alternative is the latticeshade function, which should essentially allow you to smooth out your image on the right.
Feb
26
awarded  Popular Question
Feb
17
comment how to have transparent background in 3d plot of asymptote?
At the moment, I don't think this can be done (unless you set settings.render = 0, which comes with its own set of issues).