Generates texture coordinates as if mesh were a cube.
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 = GeneratePlanarTextureCoordinates(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 GenerateCubicTextureCoordinates(
MeshGeometry3D mesh
) |
Visual Basic |
---|
Public Shared Function GenerateCubicTextureCoordinates ( _
mesh As MeshGeometry3D _
) As PointCollection |
JScript |
---|
public static function GenerateCubicTextureCoordinates(
mesh : MeshGeometry3D
) : PointCollection |
Parameters
- mesh
- Type: System.Windows.Media.Media3D..::..MeshGeometry3D
The mesh
Return Value
The generated texture coordinates
See Also