|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.DefaultSceneNode
cz.cuni.jagrlib.CSGCommonNode
cz.cuni.jagrlib.CSGLeaf
public class CSGLeaf
Leaf node (holding elementary solid) of CSG scene representation.
Solid
,
CSGNode
Field Summary | |
---|---|
Solid |
solid
Solid which is assigned to this leaf-node. |
Fields inherited from class cz.cuni.jagrlib.CSGCommonNode |
---|
attr, order, parent, root |
Fields inherited from class cz.cuni.jagrlib.DefaultSceneNode |
---|
serial |
Fields inherited from interface cz.cuni.jagrlib.SceneNode |
---|
ATTR_BSSRDF, ATTR_COLOR, ATTR_TEXTURE |
Constructor Summary | |
---|---|
CSGLeaf(Solid _solid)
Initializing constructor. |
Method Summary | |
---|---|
java.util.List<MicroFacet> |
intersection(double[] P0,
double[] P1)
Computes all intersections of the given ray with the solid. |
Methods inherited from class cz.cuni.jagrlib.CSGCommonNode |
---|
assertAttributes, getAttribute, getAttributes, getOrder, getParent, isObjectRoot, selfAttribute, setAttribute, setObjectRoot, setOrder, setParent |
Methods inherited from class cz.cuni.jagrlib.DefaultSceneNode |
---|
getChild, getChildMatrix, getChildMatrixInv, getSerial, children, insertChild, removeChild, setSerial |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Solid solid
CSGLeaf
Nodes.
Constructor Detail |
---|
public CSGLeaf(Solid _solid)
Method Detail |
---|
public java.util.List<MicroFacet> intersection(double[] P0, double[] P1)
intersection
in interface SceneNode
intersection
in class DefaultSceneNode
P0
- Ray origin (double[3]
or double[4]
).P1
- Direction vector of the ray (double[3]
or double[4]
).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |