M_Rhino_Render_TextureMapping_CreateCylinderMapping - mcneel/rhinocommon-api-docs GitHub Wiki
Create a cylindrical projection texture mapping.
Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static TextureMapping CreateCylinderMapping(
Cylinder cylinder,
bool capped
)
VB
Public Shared Function CreateCylinderMapping (
cylinder As Cylinder,
capped As Boolean
) As TextureMapping
- cylinder
- Type: Rhino.Geometry.Cylinder
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[0],height[1]) to texture "v" (0,1), and the radial parameter maps (0,r) to texture "w" (0,1). - capped
- Type: System.Boolean
If true, the cylinder is treated as a finite capped cylinder
Type: TextureMapping
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.
Supported in: 5D58w