C# Class IATK.BigMesh

Inheritance: MonoBehaviour
Afficher le fichier Open project: MaximeCordeil/IATK Class Usage Examples

Méthodes publiques

Свойство Type Description
VERTEX_LIMIT int

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

GetNumberVertices() public méthode

public GetNumberVertices ( ) : int
Résultat int

GetUVs() public méthode

public GetUVs ( int channel ) : List
channel int
Résultat List

MapUVChannel() public méthode

public MapUVChannel ( int channel, int component, Array data ) : void
channel int
component int
data Array
Résultat void

QueueTween() public méthode

public QueueTween ( ) : void
Résultat void

SaveBigMesh() public méthode

public SaveBigMesh ( ) : void
Résultat void

Tween() public méthode

public Tween ( TweenType type ) : void
type TweenType
Résultat void

UpdateTweens() public méthode

public UpdateTweens ( ) : void
Résultat void

createBigMesh() public static méthode

Creates a big mesh. Only handles meshes composed of triangles, points, and lines.
public static createBigMesh ( BigMeshData meshData ) : BigMesh
meshData BigMeshData Mesh data.
Résultat BigMesh

getBigMeshVertices() public méthode

returns the vertex positions of the big mesh
public getBigMeshVertices ( ) : Vector3[]
Résultat Vector3[]

getColors() public méthode

Gets the colours.
public getColors ( ) : Color[]
Résultat Color[]

getNormals() public méthode

Gets the normals.
public getNormals ( ) : Vector3[]
Résultat Vector3[]

recalculateBounds() public méthode

public recalculateBounds ( ) : void
Résultat void

saveMesh() public méthode

saves the mesh(es) on the disk
public saveMesh ( GameObject theMesh, int &indexCount, Material material ) : void
theMesh GameObject
indexCount int
material Material
Résultat void

updateBigMeshColour() public méthode

updates the big mesh colours
public updateBigMeshColour ( Color colour ) : void
colour Color
Résultat void

updateBigMeshColours() public méthode

updates the big mesh colours
public updateBigMeshColours ( Array colours ) : void
colours Array
Résultat void

updateBigMeshNormals() public méthode

updates the big mesh normals
public updateBigMeshNormals ( Array normals ) : void
normals Array
Résultat void

updateXPositions() public méthode

sets the x positions of the vertices in the bigmesh
public updateXPositions ( Array values ) : void
values Array
Résultat void

updateYPositions() public méthode

sets the y positions of the vertices in the bigmesh
public updateYPositions ( Array values ) : void
values Array
Résultat void

updateZPositions() public méthode

sets the y positions of the vertices in the bigmesh
public updateZPositions ( Array values ) : void
values Array
Résultat void

zeroPosition() public méthode

sets to zero the provided dimension
public zeroPosition ( int component ) : void
component int
Résultat void

Property Details

VERTEX_LIMIT public_oe static_oe property

public static int VERTEX_LIMIT
Résultat int