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}"); }
//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); }
public VertexInfo getVertexInfo(SceneGraphId id) { return(vertexInfo[id.Id.Item2]); }