java.lang.Object
de.grogra.ray2.radiosity.GroupListBuilder
This Class creates a List of PatchGroups.
Every object in the scene must be converted into patch groups.
- Author:
- Ralf Kopsch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Converts a list of vertices into a patch group.void
Converts a list of vertices into a patch group.void
Converts a list of vertices into a patch group.Returns a list of patch groups.
-
Constructor Details
-
GroupListBuilder
public GroupListBuilder()
-
-
Method Details
-
add
Converts a list of vertices into a patch group.- Parameters:
shader
- a surface shader.vertices
- a list of vertices.emitted
- the emitted color.
-
add
Converts a list of vertices into a patch group. Sets the emitted color to black.- Parameters:
shader
- a surface shader.vertices
- a list of vertices.
-
add
Converts a list of vertices into a patch group.- Parameters:
vertices
- a list of vertices.emitted
- the emitted color.visible
- if false, the patch group is not visible
-
getGroups
Returns a list of patch groups.- Returns:
- Returns a list of patch groups.
-