Generates texture coordinates as if mesh were a sphere.
Notes:
1) v is flipped for you automatically
2) 'mesh' is not modified. If you want the generated coordinates
to be assigned to mesh, do:
mesh.TextureCoordinates = GenerateSphericalTextureCoordinates(mesh, foo)
Namespace: Ico.Windows.Media.Media3DAssembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)
Syntax
C# |
---|
public static PointCollection GenerateSphericalTextureCoordinates(
MeshGeometry3D mesh,
Vector3D dir
) |
Visual Basic |
---|
Public Shared Function GenerateSphericalTextureCoordinates ( _
mesh As MeshGeometry3D, _
dir As Vector3D _
) As PointCollection |
JScript |
---|
public static function GenerateSphericalTextureCoordinates(
mesh : MeshGeometry3D,
dir : Vector3D
) : PointCollection |
Parameters
- mesh
- Type: System.Windows.Media.Media3D..::..MeshGeometry3D
The mesh
- dir
- Type: System.Windows.Media.Media3D..::..Vector3D
The axis of rotation for the sphere
Return Value
The generated texture coordinates
See Also