Module gpuFlux

Class BVHTree

java.lang.Object
de.grogra.gpuflux.scene.BVH.BVHTree

public class BVHTree extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getRoot

      public BVHNode getRoot()
    • getBounds

      public BoundingBox3d getBounds()
    • getVolumeOrdering

      public Integer[] getVolumeOrdering()
    • getRootIdx

      public int getRootIdx()
    • serializeBVH

      public void serializeBVH(ComputeByteBuffer computeByteBuffer, int primitiveIdxOffset) throws IOException
      Throws:
      IOException
    • serializeBIH

      public void serializeBIH(ComputeByteBuffer computeByteBuffer, int primitiveIdxOffset) throws IOException
      Throws:
      IOException
    • getSAH

      public static double getSAH(double area, double leftArea, double rightArea, int leftPrims, int rightPrims)
    • computeSAH

      public double computeSAH()
    • prune

      public void prune()