Package | Description |
---|---|
org.dayflower.pathtracer.scene.bvh |
Provides the Bounding Volume Hierarchy (BVH) API.
|
Modifier and Type | Class and Description |
---|---|
static class |
BoundingVolumeHierarchy.LeafNode
A
LeafNode is a BoundingVolumeHierarchy.Node implementation that represents a leaf node in a Bounding Volume Hierarchy (BVH). |
static class |
BoundingVolumeHierarchy.TreeNode
A
TreeNode is a BoundingVolumeHierarchy.Node implementation that represents a tree node in a Bounding Volume Hierarchy (BVH). |
Modifier and Type | Method and Description |
---|---|
BoundingVolumeHierarchy.Node |
BoundingVolumeHierarchy.getRoot()
Returns the root
BoundingVolumeHierarchy.Node of this BoundingVolumeHierarchy instance. |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<BoundingVolumeHierarchy.Node> |
BoundingVolumeHierarchy.TreeNode.getLeft()
Returns an
Optional with the optional left BoundingVolumeHierarchy.Node . |
java.util.Optional<BoundingVolumeHierarchy.Node> |
BoundingVolumeHierarchy.TreeNode.getRight()
Returns an
Optional with the optional right BoundingVolumeHierarchy.Node . |
java.util.List<BoundingVolumeHierarchy.Node> |
BoundingVolumeHierarchy.Node.toList()
Returns a
List with all Node s added in a depth-first order. |
java.util.List<BoundingVolumeHierarchy.Node> |
BoundingVolumeHierarchy.LeafNode.toList(java.util.List<BoundingVolumeHierarchy.Node> nodes)
Returns a
List with all Node s added in a depth-first order. |
abstract java.util.List<BoundingVolumeHierarchy.Node> |
BoundingVolumeHierarchy.Node.toList(java.util.List<BoundingVolumeHierarchy.Node> nodes)
Returns a
List with all Node s added in a depth-first order. |
java.util.List<BoundingVolumeHierarchy.Node> |
BoundingVolumeHierarchy.TreeNode.toList(java.util.List<BoundingVolumeHierarchy.Node> nodes)
Returns a
List with all Node s added in a depth-first order. |
Modifier and Type | Method and Description |
---|---|
void |
BoundingVolumeHierarchy.TreeNode.setLeft(BoundingVolumeHierarchy.Node left)
Sets the left
BoundingVolumeHierarchy.Node . |
void |
BoundingVolumeHierarchy.TreeNode.setRight(BoundingVolumeHierarchy.Node right)
Sets the right
BoundingVolumeHierarchy.Node . |
Modifier and Type | Method and Description |
---|---|
java.util.List<BoundingVolumeHierarchy.Node> |
BoundingVolumeHierarchy.LeafNode.toList(java.util.List<BoundingVolumeHierarchy.Node> nodes)
Returns a
List with all Node s added in a depth-first order. |
abstract java.util.List<BoundingVolumeHierarchy.Node> |
BoundingVolumeHierarchy.Node.toList(java.util.List<BoundingVolumeHierarchy.Node> nodes)
Returns a
List with all Node s added in a depth-first order. |
java.util.List<BoundingVolumeHierarchy.Node> |
BoundingVolumeHierarchy.TreeNode.toList(java.util.List<BoundingVolumeHierarchy.Node> nodes)
Returns a
List with all Node s added in a depth-first order. |