de.grogra.gpuflux.scene.BVH
public class BVHNode extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
axis |
BoundingBox3d |
bb |
int |
idx |
BVHNode |
left |
int |
nidx |
int |
pcount |
BVHNode |
right |
| Constructor and Description |
|---|
BVHNode(int axis,
int idx,
int pcount,
BoundingBox3d bb,
BVHNode left,
BVHNode right) |
| Modifier and Type | Method and Description |
|---|---|
double |
computeSAH(double parentArea) |
boolean |
isLeaf() |
public int axis
public BoundingBox3d bb
public int idx
public BVHNode left
public int nidx
public int pcount
public BVHNode right
public BVHNode(int axis,
int idx,
int pcount,
BoundingBox3d bb,
BVHNode left,
BVHNode right)