private TreeNode CreateBVHNode(BVH <Primitive> bvhNode) { TreeNode node = Nodifier.CreateBVHNode(bvhNode); if (!bvhNode.IsLeaf) { node.Nodes.Add(new TreeNode("...") { Tag = BVHPlaceholder }); } return(node); }
public void UpdateBVH() { treeBVH.BeginUpdate(); treeBVH.Nodes.Clear(); if (_Scene.Accelerator != null) { TreeNode root = Nodifier.CreateBVHNode(_Scene.Accelerator, "Root"); ExpandBVHNode(root, true); root.Expand(); treeBVH.Nodes.Add(root); treeBVH.SelectedNode = root; } treeBVH.EndUpdate(); }