java.lang.Object
de.grogra.ray2.radiosity.RadiosityAlgorithm
This is the main radiosity calculation class.
- Author:
- Ralf Kopsch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
calculateScene
(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.
-
Constructor Details
-
RadiosityAlgorithm
Constructor.- Parameters:
renderer
- the PixelwiseRenderer.
-
-
Method Details
-
calculateScene
public void calculateScene(Vector<PatchGroup> globalGroupList, float subDivThresh, int maxSubDivDepth, int threadCount) Calculates the scene.- Parameters:
globalGroupList
- the list of patch groups.subDivThresh
- the subdivision threshold.maxSubDivDepth
- the recursion depth.threadCount
- the thread count.
-
getComponent
Returns the value with the index i.- Parameters:
pos
- The index- Returns:
- Returns the value with the index i.
-
setComponent
Sets the value with the index i to a new Value.- Parameters:
pos
- The index.newVal
- The new value to set.
-
getSteps
public int getSteps()Returns the current calculation step.- Returns:
- Returns the current calculation step.
-