Show / Hide Table of Contents

Class TextureCoordinates

Methods for generating UV texture coordinates for Mesh objects.

Inheritance
System.Object
TextureCoordinates
Namespace: VRSketchingGeometry.Meshing
Assembly: VRSketchingGeometry.dll
Syntax
public class TextureCoordinates
Remarks

Original author: tterpi

Methods

GenerateQuadrilateralUVs(Int32, Int32)

Create texture coordinates for a quadrilateral mesh.

Declaration
public static List<Vector2> GenerateQuadrilateralUVs(int verticesCount, int width)
Parameters
Type Name Description
System.Int32 verticesCount

Total number of vertices.

System.Int32 width

Number of vertices along the U axis.

Returns
Type Description
System.Collections.Generic.List<UnityEngine.Vector2>

GenerateQuadrilateralUVsStretchU(Int32, Int32)

Create texture coordinates for a quadrilateral mesh. Goes from 0 to 1 in U direction and repeats in V direction.

Declaration
public static List<Vector2> GenerateQuadrilateralUVsStretchU(int verticesCount, int width)
Parameters
Type Name Description
System.Int32 verticesCount

Total number of vertices.

System.Int32 width

Number of vertices along the U axis.

Returns
Type Description
System.Collections.Generic.List<UnityEngine.Vector2>
In This Article
Back to top Generated by DocFX