M_Rhino_Render_TextureMapping_CreateSphereMapping - mcneel/rhinocommon-api-docs GitHub Wiki

TextureMapping.CreateSphereMapping Method

Create a spherical projection texture mapping.

Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public static TextureMapping CreateSphereMapping(
	Sphere sphere
)

VB

Public Shared Function CreateSphereMapping ( 
	sphere As Sphere
) As TextureMapping

Parameters

 

sphere
Type: Rhino.Geometry.Sphere
sphere in world space used to define a spherical coordinate system. The longitude parameter maps (0,2pi) to texture "u" (0,1). The latitude paramter maps (-pi/2,+pi/2) to texture "v" (0,1). The radial parameter maps (0,r) to texture "w" (0,1).

Return Value

Type: TextureMapping
TextureMapping instance if input is valid

Version Information

Supported in: 5D58w

See Also

Reference

TextureMapping Class
Rhino.Render Namespace

⚠️ **GitHub.com Fallback** ⚠️