public List <List <BSPTriangle> > ToList() { List <List <BSPTriangle> > list = new List <List <BSPTriangle> >(); if (node != null) { node.Iterate(list); } return(list); }
public void Iterate(List <List <BSPTriangle> > list) { if (right != null) { right.Iterate(list); } list.Add(triangles); if (left != null) { left.Iterate(list); } }