Module raytracer

Class OctreeCell

java.lang.Object
de.grogra.ray.intersection.OctreeCell

public class OctreeCell extends Object
  • Field Details

    • testInt

      public int testInt
  • Constructor Details

    • OctreeCell

      public OctreeCell(int depth)
    • OctreeCell

      public OctreeCell(int depth, Vector3f minValues, Vector3f maxValues)
  • Method Details

    • getDepth

      public int getDepth()
    • getLinkedObjects

      public ArrayList getLinkedObjects()
    • hasChildren

      public boolean hasChildren()
    • getMinValues

      public Vector3f getMinValues()
    • getMaxValues

      public Vector3f getMaxValues()
    • getNeighbourFront

      public OctreeCell getNeighbourFront()
    • getNeighbourBack

      public OctreeCell getNeighbourBack()
    • getNeighbourTop

      public OctreeCell getNeighbourTop()
    • getNeighbourBottom

      public OctreeCell getNeighbourBottom()
    • getNeighbourLeft

      public OctreeCell getNeighbourLeft()
    • getNeighbourRight

      public OctreeCell getNeighbourRight()
    • setNeighbours

      public void setNeighbours(OctreeCell front, OctreeCell back, OctreeCell top, OctreeCell bottom, OctreeCell left, OctreeCell right)
    • getChild

      public OctreeCell getChild(int index)
    • setExtension

      public void setExtension(Vector3f minValues, Vector3f maxValues)
    • hasIntersection

      public boolean hasIntersection(Ray ray)
    • divideNode

      public void divideNode()