Voxelize is an OpenSCAD module that you can use to create voxel art out of other models.
To use you'll want to find the minimum and maximum point that is the corners of a box that would contain your model. Pass these points to the voxelize function as p0 and p1. pass in a step (i.e. voxel size) and an optional overlap (important for making it printable). The procedure will take several minutes depending on the steps and complexity of the model. You may get a few warnings during processing; this is normal. Excessive warnings can mean your volume is much larger than it needs to be. If you are getting errors, it is possible that your model is too complex to be processed. Try reducing the complexity of your model with MeshMixer or your favorite capable app.
There are two examples included.
Credit for Original 3DBenchy model: https://www.thingiverse.com/thing:763622
Credit for Stanford Bunny Model: From MeshMixer.
- Use overlap of about 0.2 to be sure models are solid setting overlap to zero could mean voxels touching only by edges or corners.
- Expect the voxelize function to take a long time. The included bunny included examples can take 15 to 20 minuets or more to process.
- Reduce complexity of models beforehand to reduce processing time improve success. E.g. the Benchy example was reduced by 95% in MeshMixer so it could successfully be processed by voxelize.
- Offset the starting point, p0, by -1/2 step after finding the minimum for your model. This will improve symmetry since samples are taken at step boundries.
Have fun! Don't forget to post your creations and let me know if you have any questions or suggestions.
More to come!
For the bunny, I printed this by rotating it 45 degrees towards his back then add supports manually. This made the supports easier to remove and gave the voxels a more rounded appearance.
For the Benchy, this I printed without supports. The Voxels are smaller on this example so they are more like overhangs. This seemed to work well but there were a couple places where supports would have been helpful like back of the roof near the smokestack.