Cylinder | This node provides a cylinder (and tube) geometry. |
Renders a cylinder with adjustable dimensions and, optionally, a hole if the Hole property is set to a non-zero value. By decreasing the Angle property, partial cylinders or pie wedges can be created.
Depending on the actual size of the object in the renderer, it might be necessary to increase the tessellation values Depth, Ring and Segment to preserve a truly round appearance. As always, using more triangles often improves the rendering or shading quality but decreases rendering performance.
The Texture properties can be used to adjust the way texture coordinates are generated. TopBottom is applied to the top and bottom ends of the cylinder and supports Flat mode which uses a planar mapping as well as Wrap mode which follows the curvature of the cylinder. Cover is only relevant when Angle is less than 360 degrees and applies to the cutaway region. FromHull interpolates between the UV values at the top and bottom of the cover, Flat uses a planar mapping.
For explanations on the MeshTester property, see Hit Test and Mouse Over.