Cylinders and Tubes
CreatiCode last edited by info-creaticode
A cylinder shape is like a tree trunk, with round top and bottom faces.
The “Add Cylinder” Block
You can set the initial diffusion color when you add a cylinder. You can update its diffusion/emission color, roughness or brightness later.
Top Diameter, Bottom Diameter and Height
The top and bottom faces of a cylinder are circle-shaped, but they do not have to be the same size. When one of the diameters is 0, you get a cone.
If you think of the cylinder as a cake, we can cut off a slice of it, and the “arc” controls the percentage of the cake that remains. If the arc is 100, then you get the full cake. Here are some example “arc” values:
Open vs Closed Section
When the “arc” is not 100%, we are cutting off a piece of the cake, and we have the option to set the cutting section open or closed. When the section is not closed, we can see inside the cylinder:
You can also control whether the top and bottom faces are covered up or open with the “cap” type:
The body of a cylinder is composed of rectangle faces, and the “sides” input controls how many such side faces are used. The more sides you use, the smoother the cylinder looks:
Combining Multiple Inputs
By combining different settings for different inputs, you can get interesting shapes that do not look like cylinders at all. For example, you can get a “curved wall” when you run this block:
Tubes are closely related to cylinders. You can get a tube by cutting a cylinder with a smaller cylinder:
Therefore, the block to add a tube has very similar input parameters:
The only new input added for tubes is “thickness”, which controls the thickness of the “wall” of the tube. It should never be more than half of the top or bottom diameter.