C# Class IATK.BigMesh

Inheritance: MonoBehaviour
Datei anzeigen Open project: MaximeCordeil/IATK Class Usage Examples

Public Properties

Property Type Description
VERTEX_LIMIT int

Public Methods

Method 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

Method 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 method

public GetNumberVertices ( ) : int
return int

GetUVs() public method

public GetUVs ( int channel ) : List
channel int
return List

MapUVChannel() public method

public MapUVChannel ( int channel, int component, Array data ) : void
channel int
component int
data Array
return void

QueueTween() public method

public QueueTween ( ) : void
return void

SaveBigMesh() public method

public SaveBigMesh ( ) : void
return void

Tween() public method

public Tween ( TweenType type ) : void
type TweenType
return void

UpdateTweens() public method

public UpdateTweens ( ) : void
return void

createBigMesh() public static method

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

getBigMeshVertices() public method

returns the vertex positions of the big mesh
public getBigMeshVertices ( ) : Vector3[]
return Vector3[]

getColors() public method

Gets the colours.
public getColors ( ) : Color[]
return Color[]

getNormals() public method

Gets the normals.
public getNormals ( ) : Vector3[]
return Vector3[]

recalculateBounds() public method

public recalculateBounds ( ) : void
return void

saveMesh() public method

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

updateBigMeshColour() public method

updates the big mesh colours
public updateBigMeshColour ( Color colour ) : void
colour Color
return void

updateBigMeshColours() public method

updates the big mesh colours
public updateBigMeshColours ( Array colours ) : void
colours Array
return void

updateBigMeshNormals() public method

updates the big mesh normals
public updateBigMeshNormals ( Array normals ) : void
normals Array
return void

updateXPositions() public method

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

updateYPositions() public method

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

updateZPositions() public method

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

zeroPosition() public method

sets to zero the provided dimension
public zeroPosition ( int component ) : void
component int
return void

Property Details

VERTEX_LIMIT public_oe static_oe property

public static int VERTEX_LIMIT
return int