Click or drag to resize
Ab4d.SharpEngine logo

MeshUtilsGenerateCubicTextureCoordinates(Vector3, Int32) Method

Generate texture coordinates for the given positions 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: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static Vector2[] GenerateCubicTextureCoordinates(
	Vector3[] positions,
	int[] triangleIndices
)

Parameters

positions  Vector3
Array of 3D vertex positions that define the mesh.
triangleIndices  Int32
Array of triangle indices that define the mesh.

Return Value

Vector2
Array of generated texture coordinates.
See Also