Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save error #28

Open
tpatgm opened this issue Mar 25, 2022 · 2 comments
Open

Save error #28

tpatgm opened this issue Mar 25, 2022 · 2 comments

Comments

@tpatgm
Copy link

tpatgm commented Mar 25, 2022

Hello,
I'm new user of ConstrcutiveGeometry.
WhanI run the sphre_cube example, there is the following error with save.
What am I doing wrong.
Thank you for your support
Thierry

julia> save("sphere_cube.png", u)
Errors encountered while save File{DataFormat{:PNG}, String}("sphere_cube.png").
All errors:

MethodError: no method matching save(::File{DataFormat{:PNG}, String}, ::ConstructiveGeometry.ConstructedSolid{:union, Vector{ConstructiveGeometry.AbstractGeometry{3}}, 3})

@plut
Copy link
Owner

plut commented Mar 25, 2022

The actual plotting is done by CairoMakie, so this is how it should be done:

using ConstructiveGeometry, FileIO, CairoMakie
save("/tmp/a.png", sphere(10))

(I guess I could add an error message when no Makie backend is loaded, but currently I don't know how to detect this).

@tpatgm
Copy link
Author

tpatgm commented Mar 28, 2022

Thank you for your answer,
here is the error message for save (using julia 1.7 on windows 10)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants