SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: writeASY errors [ Reply ]
By: Lauren Sumner-Rooney on 2020-07-28 09:43
[forum:47982]
Hi Duncan and Lars,

Thought I'd continue this thread rather than starting over - I'm having trouble getting writeASY to give me PDF output instead of .asy files.

Using Lars' example, no errors are reported and a .asy file is produced. Trying to write an rgl scene of my own (using the example script under Usage), I'm still getting a .asy file but also this warning;

Warning message:
In writeASY(scene = scene3d(), title = "scene", outtype = "pdf", :
Object type(s) 'clipplanes' not handled

Any thoughts on what I'm doing wrong?

Thanks so much!

RE: writeASY errors [ Reply ]
By: Duncan Murdoch on 2020-01-17 17:37
[forum:47321]
I've committed a fix for the change to the definition of the light() function. It now runs the example with Asymptote 2.49. You can get the Asymptote 2.44 behaviour by setting ver244 = TRUE in the call to writeASY(). I haven't tested on very complex scenes, so there may be other changes needed.

RE: writeASY errors [ Reply ]
By: Lars Relund on 2020-01-17 13:25
[forum:47319]
Hope you find the update reason. writeASY is a very good tool to include 3d figures in articles!

RE: writeASY errors [ Reply ]
By: Duncan Murdoch on 2020-01-17 09:46
[forum:47317]
It appears that the definition of the light() function has changed, but I can't find a useful change history to be sure of that, and I don't know whether there's a way to be compatible with both versions.

RE: writeASY errors [ Reply ]
By: Lars Relund on 2020-01-17 07:35
[forum:47316]
Yes I am using Win 10 64 bit. The version is: Asymptote version 2.49 [(C) 2004 Andy Hammerlindl, John C. Bowman, Tom Prince]. I tried to download v2.44 at https://sourceforge.net/projects/asymptote/files/ and it works. However, this is not the version included in texlive.


RE: writeASY errors [ Reply ]
By: Duncan Murdoch on 2020-01-16 15:16
[forum:47315]
What version of Asymptote are you using? It's working for me, with "asy --version" printing

Asymptote version 2.44 [(C) 2004 Andy Hammerlindl, John C. Bowman, Tom Prince]

This is on a Mac; looks like you're on Windows.

writeASY errors [ Reply ]
By: Lars Relund on 2020-01-16 14:39
[forum:47314]

test.asy (6) downloads
Hi the following code:

open3d()
plot3d(data.frame(x = c(-1,1,3), y = c(-1,1,3), z = c(-1,1,3)))
planes3d(a = 1, b = 1,c = 1, d = -3, col = "grey100", alpha = 0.5)
writeASY(title = "test")

seems to produce an error when compiling the asy file in Asymptote:

asy.exe -globalwrite test.asy

test.asy: 32.21: no matching function 'light(pen[] ambient, pen[] diffuse, pen[] specular, triple[] position, bool viewport)'

[File also attached]

Thanks to:
Vienna University of Economics and Business Powered By FusionForge