Module raytracer

Class Triangulizer

java.lang.Object
de.grogra.ray2.radiosity.triangulation.Triangulizer

public class Triangulizer extends Object
This class divides a volume into patches.
Author:
Ralf Kopsch
  • Constructor Details

    • Triangulizer

      public Triangulizer()
  • Method Details

    • triangulize

      public static void triangulize(GroupListBuilder builder, Scene scene, Volume v) throws TriangulationException
      This method divides a volume into a list of patches.
      Parameters:
      builder - the global builder list.
      scene - the scene.
      v - a volume.
      Throws:
      TriangulationException - thrown if, the given volume can not be divided.
    • triangulize

      public static void triangulize(GroupListBuilder builder, Scene scene, int lightIndex) throws TriangulationException
      This method divides a Light into patches.
      Parameters:
      builder - the global builder list.
      scene - the scene
      lightIndex - the light index.
      Throws:
      TriangulationException - thrown if, a volume can not be divided.