Example #1
0
        public SVOData Create(RT.CS.Node root, GetLeaf getLeaf = null)
        {
            SVOData result = new SVOData();

            List <int>  nodes       = new List <int>();
            List <uint> attachments = new List <uint>();

            CompressSVO(root, nodes, attachments, getLeaf);

            result.childDescriptors = nodes;
            result.attachments      = attachments;

            return(result);
        }
Example #2
0
        public SVOData Create(UtilFuncs.Sampler sample, int maxLevel)
        {
            SVOData result = new SVOData();
            Node    root   = new Node(new Vector3(1, 1, 1), 1, 1, false);

            BuildTree(root, 1, sample, maxLevel);

            List <int>  nodes       = new List <int>();
            List <uint> attachments = new List <uint>();

            CompressSVO(root, nodes, attachments);

            result.childDescriptors = nodes;
            result.attachments      = attachments;

            return(result);
        }