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; } }
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(); }