Exemple #1
0
 public Triangle(Vertex a, Vertex b, Vertex c)
 {
     p1           = a;
     p2           = b;
     p3           = c;
     SceneGraphId = SceneGraph.Instance.AddTriangle(this);
     //Console.WriteLine($"triangle {a} {b} {c}");
 }
Exemple #2
0
        //List<Triangle> neighbor = new List<Triangle>(); //Neighbor triangles of vertex


        #region Constructors

        //public Vertex()
        //{
        //    pos = new Vector(0f, 0f, 0f);
        //}

        public Vertex(float xpos, float ypos, float zpos)
        {
            pos          = new Vector(xpos, ypos, zpos);
            SceneGraphId = SceneGraph.Instance.AddVertex(this);
        }
Exemple #3
0
 public VertexInfo getVertexInfo(SceneGraphId id)
 {
     return(vertexInfo[id.Id.Item2]);
 }