de.grogra.ray2.radiosity.triangulation
public class Triangulizer extends java.lang.Object
| Constructor and Description |
|---|
Triangulizer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
triangulize(GroupListBuilder builder,
Scene scene,
int lightIndex)
This method divides a Light into patches.
|
static void |
triangulize(GroupListBuilder builder,
Scene scene,
Volume v)
This method divides a volume into a list of patches.
|
public static void triangulize(GroupListBuilder builder, Scene scene, int lightIndex) throws TriangulationException
builder - the global builder list.scene - the scenelightIndex - the light index.TriangulationException - thrown if, a volume can not be divided.public static void triangulize(GroupListBuilder builder, Scene scene, Volume v) throws TriangulationException
builder - the global builder list.scene - the scene.v - a volume.TriangulationException - thrown if, the given volume can not be divided.