Click or drag to resize
Ab4d.SharpEngine logo

MeshUtilsGenerateCubicTextureCoordinates(PositionNormalTextureVertex, Int32) Method

Generate texture coordinates for the given vertices and triangleIndices. Texture coordinates are computed using cubic projection, which projects the 3D positions on an axis-aligned 3D cube.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public static Vector2[] GenerateCubicTextureCoordinates(
	PositionNormalTextureVertex[] vertices,
	int[] triangleIndices
)

Parameters

vertices  PositionNormalTextureVertex
Array of vertex data that defines the mesh.
triangleIndices  Int32
Array of triangle indices that define the mesh.

Return Value

Vector2
Array of generated texture coordinates.
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MeshUtils.GenerateCubicTextureCoordinates(Ab4d.SharpEngine.Common.PositionNormalTextureVertex[],System.Int32[])"]

See Also