de.grogra.ray2.radiosity
public class RadiosityAlgorithm extends java.lang.Object
| Constructor and Description |
|---|
RadiosityAlgorithm(PixelwiseRenderer renderer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateScene(java.util.Vector<PatchGroup> globalGroupList,
float subDivThresh,
int maxSubDivDepth,
int threadCount)
Calculates the scene.
|
float |
getComponent(Tuple3f t,
int pos)
Returns the value with the index i.
|
int |
getSteps()
Returns the current calculation step.
|
void |
setComponent(Tuple3f t,
int pos,
float newVal)
Sets the value with the index i to a new Value.
|
public RadiosityAlgorithm(PixelwiseRenderer renderer)
renderer - the PixelwiseRenderer.public void calculateScene(java.util.Vector<PatchGroup> globalGroupList, float subDivThresh, int maxSubDivDepth, int threadCount)
globalGroupList - the list of patch groups.subDivThresh - the subdivision threshold.maxSubDivDepth - the recursion depth.threadCount - the thread count.public float getComponent(Tuple3f t, int pos)
pos - The indexpublic int getSteps()
public void setComponent(Tuple3f t, int pos, float newVal)
pos - The index.newVal - The new value to set.