Exemple #1
0
 public BvhNode(BvhHierarchy hierarchy, BvhNode parent, BvhNodeType type = BvhNodeType.NONE, string name = "my_node")
 {
     this.hierarchy = hierarchy;
     this.parent    = parent;
     this.type      = type;
     this.name      = name;
 }
Exemple #2
0
        public BvhNode AddNewNode(BvhNode parent, BvhNodeType type, string name)
        {
            BvhNode newNode = new BvhNode(this, parent, type, name);

            nodes.Add(newNode);
            return(newNode);
        }