Beispiel #1
0
 public void HighlightEdge(int index)
 {
     if (index != -1)
     {
         List <Vector3> list = new List <Vector3>();
         GDMesh.Edge    edge = this.Controller.GDMesh.Edges[index];
         list.Add(this.Controller.referencedGO.transform.TransformPoint(edge.Vertex0.Traits.position));
         list.Add(this.Controller.referencedGO.transform.TransformPoint(edge.Vertex1.Traits.position));
         GLDrawUtility.DrawLine(Color.green, Color.green, Color.green, list.ToArray(), false);
     }
 }
Beispiel #2
0
        public void DrawEdges()
        {
            List <Vector3> list = new List <Vector3>();

            foreach (int num in this.Controller.selection.selectedEdges)
            {
                GDMesh.Edge edge = this.Controller.GDMesh.Edges[num];
                list.Add(this.Controller.referencedGO.transform.TransformPoint(edge.Vertex0.Traits.position));
                list.Add(this.Controller.referencedGO.transform.TransformPoint(edge.Vertex1.Traits.position));
            }
            GLDrawUtility.DrawLine(Color.red, Color.red, Color.red, list.ToArray(), false);
        }