C# 클래스 IATK.BigMesh

상속: MonoBehaviour
파일 보기 프로젝트 열기: MaximeCordeil/IATK 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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