-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMeshDebug.cs
37 lines (26 loc) · 897 Bytes
/
MeshDebug.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using UnityEngine;
using System.Collections;
public class MeshDebug : MonoBehaviour {
// Use this for initialization
void Start () {
/*Mesh mesh = GetComponent<MeshFilter>().mesh;
Vector3[] vertices = mesh.vertices;
float [][] verticesArray;// = new float [vertices.Length][3];
verticesArray = new float [vertices.Length][];
int vertexCount = mesh.vertexCount;
int i = 0;
while (i < vertices.Length)
{
verticesArray[i] = new float [3];
verticesArray[i][0] = vertices[i].x;// X vertex
verticesArray[i][1] = vertices[i].y;// Y vertex
verticesArray[i][2] = vertices[i].z;// Z vertex
Debug.Log (" verticesArray["+i+"] X ="+verticesArray[i][0] +" verticesArray["+i+"] Y ="+ verticesArray[i][1]+" verticesArray["+i+"] Z ="+verticesArray[i][2]+" vertexCount = " +vertexCount );
i++;
}
*/
}
// Update is called once per frame
void Update () {
}
}