raja.shape
Class BasicSolid

java.lang.Object
  |
  +--raja.shape.BasicSolid
All Implemented Interfaces:
Serializable, Shape3D, Solid, Volume, Writable

public class BasicSolid
extends Object
implements Solid, Serializable, Writable

See Also:
Serialized Form

Constructor Summary
BasicSolid(TexturedForm f, Volume v)
           
 
Method Summary
static Object build(ObjectReader reader)
           
 boolean contains(Point3D p)
           
 SolidLocalGeometry intersection(Ray r)
           
 boolean intersects(LightRay r)
           
 double refractiveIndex(Point3D p)
           
 boolean strictlyContains(Point3D p)
           
 String toString()
           
 void write(ObjectWriter writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicSolid

public BasicSolid(TexturedForm f,
                  Volume v)
Method Detail

build

public static Object build(ObjectReader reader)
                    throws IOException

intersection

public SolidLocalGeometry intersection(Ray r)
Specified by:
intersection in interface Solid

intersects

public boolean intersects(LightRay r)
Specified by:
intersects in interface Shape3D

contains

public boolean contains(Point3D p)
Specified by:
contains in interface Shape3D

strictlyContains

public boolean strictlyContains(Point3D p)
Specified by:
strictlyContains in interface Shape3D

refractiveIndex

public double refractiveIndex(Point3D p)
Specified by:
refractiveIndex in interface Volume

toString

public String toString()
Overrides:
toString in class Object

write

public void write(ObjectWriter writer)
           throws IOException
Specified by:
write in interface Writable