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; }
public BvhNode AddNewNode(BvhNode parent, BvhNodeType type, string name) { BvhNode newNode = new BvhNode(this, parent, type, name); nodes.Add(newNode); return(newNode); }