org.bouncycastle.graphics.rt.objects
Class Metaball
java.lang.Object
|
+--org.bouncycastle.graphics.rt.objects.Metaball
- All Implemented Interfaces:
- Partitionable, Traceable
- public class Metaball
- extends java.lang.Object
- implements Partitionable
a metaball.
Example:
<Metaball strength="0.8" radius="1" center="0, 0, 0"/>
Note that the strength may be negative.
Document Type Definition:
<!ENTITY %Float "CDATA">
<!ENTITY %Point3f "CDATA">
<!ELEMENT Metaball EMPTY>
<!ATTLIST Metaball
center %Point3f; "0, 0, 0"
radius %Float; "1"
strength %Float; "1">
Constructor Summary |
Metaball(Point3f center,
double radius,
double strength)
basic constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Metaball
public Metaball(Point3f center,
double radius,
double strength)
- basic constructor.
- Parameters:
center
- the center.radius
- the radius.strength
- the strength (can be negative or positive).
getInstance
public static Metaball getInstance(RMLReader in)
throws java.io.IOException
bBox
public BBox bBox()
- Specified by:
bBox
in interface Partitionable
isIntersected
public boolean isIntersected(Ray r)
- Specified by:
isIntersected
in interface Traceable
intersections
public HitList intersections(Ray r)
- Specified by:
intersections
in interface Traceable
isShadowing
public boolean isShadowing(Ray r)
- Specified by:
isShadowing
in interface Traceable