Пример #1
0
 public IndexStream(XmlNode n, List <Vector3> vertices)
 {
     triangles = new List <Triangle>();
     orbox     = null;
     foreach (var s in SplitBy(n.InnerText, ' ', 3))
     {
         triangles.Add(new Triangle(s, vertices));
     }
 }
Пример #2
0
                public void fixOrientedBox()
                {
                    List <g3.Vector3d> points = new List <Vector3d>();

                    foreach (var t in triangles)
                    {
                        foreach (var v in t.vtx)
                        {
                            points.Add(new Vector3d(v.X, v.Y, v.Z));
                        }
                    }
                    orbox = new ContOrientedBox3(points);
                }
Пример #3
0
 public IndexStream(List <Triangle> newtri)
 {
     triangles = newtri;
     orbox     = null;
 }