stla

Results 306 comments of stla

I've found a way: apply a rotation to the arguments x, y, z.

... but then the result is not perfect. Is there another way? ![spiderCage_isocubes](https://github.com/coolbutuseless/isocubes/assets/4466543/fc7c8060-beeb-499e-a48d-9e9aa1adcf6b)

But how to get the vertices of the cubes?

Yes, sure. Here is the code. The original image is the I posted, named `Klein_t0.png`. Is there some lighting in the scene? ```r library(magick) library(isocuboids) library(ggplot2) t_

I observed that the plot is correct in the RStudio viewer. So it seems the issue is due to `ggsave`. I'm going to read your latest message now.

Not tried yet, please wait a minute. Usually when I save a plot, I [firstly save it to SVG then I convert it to PNG](https://laustep.github.io/stlahblog/posts/SVG2PNG.html). This gives a highly better...

Here is a screenshot of the SVG: ![kleinisoc](https://github.com/cj-holmes/isocuboids/assets/4466543/90b94b37-0758-45be-b5dd-dba05dd48d7c)

Indeed, it looks better with `theme_void`. I didn't try the GIF yet. ![zzpic000](https://github.com/cj-holmes/isocuboids/assets/4466543/c0cdd44e-b69e-467e-8dcd-0d63f9ee0397)

With `theme_void` and 5 inches: ![zzpic001](https://github.com/cj-holmes/isocuboids/assets/4466543/a17f5925-4423-43d5-8cd8-beec0993213d) Nice. Can't upload the GIF, too big.

Ah no, the GIF is not too big. And it is fine! Looks like you found the solution. ![Klein_isocuboids](https://github.com/cj-holmes/isocuboids/assets/4466543/0448cf8a-2417-47a4-bcd7-8f72d8f4074b)