The extrude
solidifier interprets the walked path as the cross section of a model and elongates it along some direction. As an example, let's extrude a star.
As we trace out closed polygons, our thinking about the algorithm will be more fruitful if we recognize that we will need to turn a total 360 degrees. In the case of a star, we have five arms, each of which will net us 72 degrees toward the 360.
Let's start with a single arm. We move out to its point, then turn and trace out the other side of the arm. Note that we effectively turn 72 degrees clockwise. At the tip of the arm, we turned 144 degrees clockwise, but we lost 72 when at the end we turned counterclockwise to get ready for the next arm.
Now we draw five arms instead of one. We wrap our work for one arm up in a repeat
loop:
The path is closed, and now we can pull it out to make a solid. We'll pull along the positive z-axis for 4 units:
The pulling direction doesn't have to be perpendicular to the path. Also, for the extrusion to yield a solid, the path will be automatically closed if you haven't closed it yourself.
The extrude
solidifier is great for stretching your model's cross section out into a solid. But what if instead of pulling the cross section out, we spun it around an axis? Read on to learn about revolve
.