C# Класс IATK.BigMesh

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
VERTEX_LIMIT int

Открытые методы

Метод Описание
GetNumberVertices ( ) : int
GetUVs ( int channel ) : List
MapUVChannel ( int channel, int component, Array data ) : void
QueueTween ( ) : void
SaveBigMesh ( ) : void
Tween ( TweenType type ) : void
UpdateTweens ( ) : void
createBigMesh ( BigMeshData meshData ) : BigMesh

Creates a big mesh. Only handles meshes composed of triangles, points, and lines.

getBigMeshVertices ( ) : Vector3[]

returns the vertex positions of the big mesh

getColors ( ) : Color[]

Gets the colours.

getNormals ( ) : Vector3[]

Gets the normals.

recalculateBounds ( ) : void
saveMesh ( GameObject theMesh, int &indexCount, Material material ) : void

saves the mesh(es) on the disk

updateBigMeshColour ( Color colour ) : void

updates the big mesh colours

updateBigMeshColours ( Array colours ) : void

updates the big mesh colours

updateBigMeshNormals ( Array normals ) : void

updates the big mesh normals

updateXPositions ( Array values ) : void

sets the x positions of the vertices in the bigmesh

updateYPositions ( Array values ) : void

sets the y positions of the vertices in the bigmesh

updateZPositions ( Array values ) : void

sets the y positions of the vertices in the bigmesh

zeroPosition ( int component ) : void

sets to zero the provided dimension

Приватные методы

Метод Описание
DoTheTween ( ) : bool
GetUVList ( int channel, Mesh mesh ) : List
Update ( ) : void
UpdateNPositions ( int component, Array values ) : void
createMesh ( Array vertices, Array indices, Array colours, Array normals, Array uvs, MeshTopology meshTopology, Material material ) : GameObject

Creates a mesh.

getChunkStride ( BigMeshData meshData, int chunkIndex ) : int
getNumberOfTopologyChunk ( BigMeshData meshData ) : int
getStride ( MeshTopology meshTopology ) : int

Gets the stride from a mesh topology

updateBigMeshVertices ( Array vertices ) : void

updates the big mesh positions

Описание методов

GetNumberVertices() публичный Метод

public GetNumberVertices ( ) : int
Результат int

GetUVs() публичный Метод

public GetUVs ( int channel ) : List
channel int
Результат List

MapUVChannel() публичный Метод

public MapUVChannel ( int channel, int component, Array data ) : void
channel int
component int
data Array
Результат void

QueueTween() публичный Метод

public QueueTween ( ) : void
Результат void

SaveBigMesh() публичный Метод

public SaveBigMesh ( ) : void
Результат void

Tween() публичный Метод

public Tween ( TweenType type ) : void
type TweenType
Результат void

UpdateTweens() публичный Метод

public UpdateTweens ( ) : void
Результат void

createBigMesh() публичный статический Метод

Creates a big mesh. Only handles meshes composed of triangles, points, and lines.
public static createBigMesh ( BigMeshData meshData ) : BigMesh
meshData BigMeshData Mesh data.
Результат BigMesh

getBigMeshVertices() публичный Метод

returns the vertex positions of the big mesh
public getBigMeshVertices ( ) : Vector3[]
Результат Vector3[]

getColors() публичный Метод

Gets the colours.
public getColors ( ) : Color[]
Результат Color[]

getNormals() публичный Метод

Gets the normals.
public getNormals ( ) : Vector3[]
Результат Vector3[]

recalculateBounds() публичный Метод

public recalculateBounds ( ) : void
Результат void

saveMesh() публичный Метод

saves the mesh(es) on the disk
public saveMesh ( GameObject theMesh, int &indexCount, Material material ) : void
theMesh GameObject
indexCount int
material Material
Результат void

updateBigMeshColour() публичный Метод

updates the big mesh colours
public updateBigMeshColour ( Color colour ) : void
colour Color
Результат void

updateBigMeshColours() публичный Метод

updates the big mesh colours
public updateBigMeshColours ( Array colours ) : void
colours Array
Результат void

updateBigMeshNormals() публичный Метод

updates the big mesh normals
public updateBigMeshNormals ( Array normals ) : void
normals Array
Результат void

updateXPositions() публичный Метод

sets the x positions of the vertices in the bigmesh
public updateXPositions ( Array values ) : void
values Array
Результат void

updateYPositions() публичный Метод

sets the y positions of the vertices in the bigmesh
public updateYPositions ( Array values ) : void
values Array
Результат void

updateZPositions() публичный Метод

sets the y positions of the vertices in the bigmesh
public updateZPositions ( Array values ) : void
values Array
Результат void

zeroPosition() публичный Метод

sets to zero the provided dimension
public zeroPosition ( int component ) : void
component int
Результат void

Описание свойств

VERTEX_LIMIT публичное статическое свойство

public static int VERTEX_LIMIT
Результат int