Esempio n. 1
0
        public void HighlightTriangle(int index)
        {
            List <Vector3> list = new List <Vector3>();

            GDMesh.Face face = this.Controller.GDMesh.Faces[index];
            foreach (GDMesh.Vertex vertex in face.Vertices)
            {
                list.Add(this.Controller.referencedGO.transform.TransformPoint(vertex.Traits.position));
            }
            GLDrawUtility.DrawTriangle(Color.green, Color.green, Color.green, list.ToArray());
        }
Esempio n. 2
0
        public void DrawTriangles()
        {
            List <Vector3> list = new List <Vector3>();

            foreach (int num in this.Controller.selection.selectedTriangles)
            {
                int         num2 = 0;
                GDMesh.Face face = this.Controller.GDMesh.Faces[num];
                foreach (GDMesh.Vertex vertex in face.Vertices)
                {
                    list.Add(this.Controller.referencedGO.transform.TransformPoint(vertex.Traits.position));
                    num2++;
                }
            }
            GLDrawUtility.DrawTriangle(Color.red, Color.red, Color.red, list.ToArray());
        }