Class CutAndScissorMTV2

java.lang.Object
com.gaia3d.process.tileprocess.multithread.CutAndScissorMTV2

public class CutAndScissorMTV2 extends Object
  • Field Details

  • Constructor Details

    • CutAndScissorMTV2

      public CutAndScissorMTV2()
    • CutAndScissorMTV2

      public CutAndScissorMTV2(int threadCount)
  • Method Details

    • apply

      public CutAndScissorMTV2.CutAndScissorResult apply(List<TileInfo> tileInfos, Node rootNode, int projectMaxDepthIdx, GaiaBoundingBox rootNodeBBoxLC)
      First phase:

      - cut and save each source tile; - stream its raw boundary data to a compact temporary binary file; - do not retain PlaneCutPoint or FrontierCandidate objects globally.

      Second phase:

      - build the final CellGrid3D instances from the generated TileInfo lists; - read each temporary boundary file in parallel; - build mergeable per-cell accumulators; - merge those accumulators sequentially; - create the final LodBoundaryAnchors.