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)); } }
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); }
public IndexStream(List <Triangle> newtri) { triangles = newtri; orbox = null; }