コード例 #1
0
    public void Release()
    {
        if (Traverser != null)
        {
            Traverser.Release();
            Traverser = null;
        }

        if (PatchesBuilder != null)
        {
            PatchesBuilder.Release();
            PatchesBuilder = null;
        }

        if (LodMapBuilder != null)
        {
            LodMapBuilder.Release();
            LodMapBuilder = null;
        }

        if (CullingPatches != null)
        {
            CullingPatches.Release();
            CullingPatches = null;
        }
    }
コード例 #2
0
    public void Initialize()
    {
        Release();

        Traverser = new QuadTreeTraverser(Setting);
        Traverser.Initialize();

        PatchesBuilder = new QuadTreeBuildPatches(Setting);
        PatchesBuilder.Initialize();

        LodMapBuilder = new QuadTreeLodMap(Setting);
        LodMapBuilder.Initialize();

        CullingPatches = new QuadTreeCulling(Setting);
        CullingPatches.Initialize();
    }