Create a cylindrical projection texture mapping.
RhinoCommon (in RhinoCommon.dll)
public static TextureMapping CreateCylinderMapping(
Public Shared Function CreateCylinderMapping (
cylinder As Cylinder,
capped As Boolean
) As TextureMapping
- Type: Rhino.GeometryCylinder
cylinder in world space used to define a cylindrical coordinate system.
The angular parameter maps (0,2pi) to texture "u" (0,1), The height
parameter maps (height,height) to texture "v" (0,1), and the
radial parameter maps (0,r) to texture "w" (0,1).
- Type: SystemBoolean
If true, the cylinder is treated as a finite capped cylinder
TextureMapping instance if input is valid
When the cylinder is capped and m_texture_space = divided, the
cylinder is mapped to texture space as follows:
The side is mapped to 0 <= "u" <= 2/3.
The bottom is mapped to 2/3 <= "u" <= 5/6.
The top is mapped to 5/6 <= "u" <= 5/6.
This is the same convention box mapping uses.
Rhino for MacSupported in: 5.4
Rhino for WindowsSupported in: 6.6