示例#1
0
    public List <List <BSPTriangle> > ToList()
    {
        List <List <BSPTriangle> > list = new List <List <BSPTriangle> >();

        if (node != null)
        {
            node.Iterate(list);
        }
        return(list);
    }
示例#2
0
 public void Iterate(List <List <BSPTriangle> > list)
 {
     if (right != null)
     {
         right.Iterate(list);
     }
     list.Add(triangles);
     if (left != null)
     {
         left.Iterate(list);
     }
 }