Class RandomHemisphereTest
java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.tests.RandomHemisphereTest
A procedural mesh that generates random points on a hemisphere using different sampling methods.
This is used to visualize different sampling techniques for path tracing and confirm their correctness.
The type of sampling can be changed by setting the 'type' variable:
- 0: Uniformly random points on the unit sphere
- 1: Uniformly random points on the hemisphere oriented along the Z-axis
- 2: Cosine-weighted random points on the hemisphere oriented along the Z-axis
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getComponents
(List<JPanel> list) Build a Swing Component that represents this Node.void
setType
(int type) void
Methods inherited from class com.marginallyclever.ro3.node.Node
addAttachListener, addChild, addChild, addDetachListener, addReadyListener, addRenameListener, findByPath, findChild, findChild, findFirstChild, findFirstSibling, findNodeByID, findParent, findParent, fromJSON, getAbsolutePath, getChildren, getIcon, getName, getParent, getRootNode, getUniqueID, hasParent, isNameUsedBySibling, removeAttachListener, removeChild, removeDetachListener, removeReadyListener, removeRenameListener, setName, toJSON, update, witnessProtection
-
Field Details
-
type
public int type
-
-
Constructor Details
-
RandomHemisphereTest
public RandomHemisphereTest()
-
-
Method Details
-
getComponents
Description copied from class:Node
Build a Swing Component that represents this Node.- Overrides:
getComponents
in classNode
- Parameters:
list
- the list to add components to.
-
updateModel
public void updateModel() -
setType
public void setType(int type)
-