Thingiverse
Wood Texture for Cylindrical Objects in OpenSCAD
by jasonramey
6
Downloads
10
Likes
0
Makes
I decided to share the code that I used to generate the wood textures on one of my recent models (https://www.thingiverse.com/thing:6051989). This script applies wood texture to the vertical sides, but not the top and bottom. I'm excited to see how other people use this script.
The simple explanation of how this works is that I just took parallel diagonal slices out of the model. This doesn't rely on any bump map files or anything other than raw geometry programmed in OpenSCAD.
The more complicated answer is to take the model, subtract thin diagonal slices from it, and then apply a Minkowski sum (https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#minkowski) on the result with a very small sphere (maybe about 0.3mm) to round out the sharp edges and slightly fill in the gaps. Then I intersect this result with the original model so it maintains the same dimensions as the original model. Then I take the original model, shrink it slightly, and position that in the midd
The simple explanation of how this works is that I just took parallel diagonal slices out of the model. This doesn't rely on any bump map files or anything other than raw geometry programmed in OpenSCAD.
The more complicated answer is to take the model, subtract thin diagonal slices from it, and then apply a Minkowski sum (https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#minkowski) on the result with a very small sphere (maybe about 0.3mm) to round out the sharp edges and slightly fill in the gaps. Then I intersect this result with the original model so it maintains the same dimensions as the original model. Then I take the original model, shrink it slightly, and position that in the midd
Did you print this model? Sign in and share your make!
Sign in to leave a comment
Sign inNo comments yet – be the first!