Generates texture coordinates as if mesh were a plane. 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.Media3D
Assembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public static PointCollection GeneratePlanarTextureCoordinates(
	MeshGeometry3D mesh,
	Vector3D dir
)
Visual Basic
Public Shared Function GeneratePlanarTextureCoordinates ( _
	mesh As MeshGeometry3D, _
	dir As Vector3D _
) As PointCollection
JScript
public static function GeneratePlanarTextureCoordinates(
	mesh : MeshGeometry3D, 
	dir : Vector3D
) : PointCollection

Parameters

mesh
Type: System.Windows.Media.Media3D..::..MeshGeometry3D
The mesh
dir
Type: System.Windows.Media.Media3D..::..Vector3D
The normal of the plane

Return Value

The generated texture coordinates

See Also