
![tyre.jpg [46k]](tyre.jpg)
This macro for POV-Ray 3.5 makes it quite easy to make realistic tyres, using an user-defined treads.
What is it?
| Manual |
The first thing to do is to include this macro in your source file, before calling it.
When you need to create a tyre, call the macro, providing its eight parameters:
Tyre( R, Rint, Ep, Fm, Em, Hbase, Htop, k_lathe )
The above parameters have the following meaning (see figure below):
![parameters [4k]](params.png)
| Treads description |
The trickiest part. The files describes in a similar way as a height_field, the shape of treads. A black and white picture is suitable here. The darker the colour, the closer to the outside the surface gets. The tyre would print the darkest areas on a hard ground while rolling, while the brightest areas would not appear.
The picture must be horizontal, using any scale, while keeping the same proportions as the real shape would certainly make things easier.
Be careful: the isosurface code used makes it mandatory to have white pixels on the upper and lower lines. A single pixel width is enough, but must be present.
| Download |
You will find below a zip archive including the macro file, this documentation and an example.
tyre.zip [65 kb]