Exemplo n.º 1
0
    public static FindEdges.Edge[] BuildManifoldEdges(Mesh mesh)
    {
        FindEdges.Edge[] array     = FindEdges.BuildEdges(mesh.vertexCount, mesh.triangles);
        ArrayList        arrayList = new ArrayList();

        foreach (FindEdges.Edge edge in array)
        {
            if (edge.faceIndex[0] == edge.faceIndex[1])
            {
                arrayList.Add(edge);
            }
        }
        return(arrayList.ToArray(typeof(FindEdges.Edge)) as FindEdges.Edge[]);
    }
Exemplo n.º 2
0
    public static FindEdges.Edge[] BuildManifoldEdges(Mesh mesh)
    {
        FindEdges.Edge[] array     = FindEdges.BuildEdges(mesh.vertexCount, mesh.triangles);
        ArrayList        arrayList = new ArrayList();

        FindEdges.Edge[] array2 = array;
        for (int i = 0; i < array2.Length; i++)
        {
            FindEdges.Edge edge = array2[i];
            if (edge.faceIndex[0] == edge.faceIndex[1])
            {
                arrayList.Add(edge);
            }
        }
        return(arrayList.ToArray(typeof(FindEdges.Edge)) as FindEdges.Edge[]);
    }