Module raytracer

Class ViewCube

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

public class ViewCube extends Object
This class describes a viewcube. A viewcube is a hemicube for exact one patch.
Author:
Ralf Kopsch
  • Constructor Details

    • 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 Details

    • projPatchOnCube

      public void projPatchOnCube(SubPatch pIn)
      Add patch to the viewcube.
      Parameters:
      pIn - the patch to add.
    • computeFormFactorMap

      public void computeFormFactorMap(Map<SubPatch,FormFactor> ffMap)
      Computes the form factor map.
      Parameters:
      ffMap - the map to fill.