de.grogra.ray2.radiosity
Class ViewCube

java.lang.Object
  extended by de.grogra.ray2.radiosity.ViewCube

public class ViewCube
extends java.lang.Object

This class describes a viewcube. A viewcube is a hemicube for exact one patch.

Author:
Ralf Kopsch

Constructor Summary
ViewCube(Vector3d center, Vector3d normal)
          Creates a new viewcube.
 
Method Summary
 void computeFormFactorMap(java.util.Map<SubPatch,FormFactor> ffMap)
          Computes the form factor map.
 void projPatchOnCube(SubPatch pIn)
          Add patch to the viewcube.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewCube

public ViewCube(Vector3d center,
                Vector3d normal)
Creates a new viewcube.

Parameters:
center - the center of the viewcube.
normal - the normal vector of the viewcube.
Method Detail

computeFormFactorMap

public void computeFormFactorMap(java.util.Map<SubPatch,FormFactor> ffMap)
Computes the form factor map.

Parameters:
ffMap - the map to fill.

projPatchOnCube

public void projPatchOnCube(SubPatch pIn)
Add patch to the viewcube.

Parameters:
pIn - the patch to add.