XJRT Rendering Toolkit 1.0b06

Class KummerSurface

java.lang.Object
  extended byorg.autochthonous.graphics.rt.Renderable
      extended byorg.autochthonous.graphics.rt.objects.Algebraic
          extended byKummerSurface
All Implemented Interfaces:
java.lang.Cloneable, ColorCalculator, NormalCalculator, Traceable

public class KummerSurface
extends Algebraic

a class describing a kummer surface - if you need to do a role your own algebraic surface, this is how it's done...


Nested Class Summary
 
Nested classes inherited from class org.autochthonous.graphics.rt.objects.Algebraic
Algebraic.RayPoly
 
Field Summary
 
Fields inherited from class org.autochthonous.graphics.rt.Renderable
color, objToRay, rayToObj, selfShadowing, shader
 
Method Summary
static Algebraic getInstance(RMLReader in)
           
 void getN(Hit hit, Vector3f n)
          Calculate the normal components, this is simply the partial derivitives in x, y, and z.
protected  Algebraic.RayPoly getPolynomial(Ray r)
          x^{4} + y^{4} + z^{4} + 1 - x^{2} - y^{2} - z^{2} - y^{2}z^{2} - z^{2}x^{2} - x^{2}y^{2} = 0
 
Methods inherited from class org.autochthonous.graphics.rt.objects.Algebraic
intersections, isIntersected, isShadowing, processParameters
 
Methods inherited from class org.autochthonous.graphics.rt.Renderable
clone, createObjectSpaceRay, getColor, getColor, getShader, hasShader, isSelfShadowing, processObject, readObject, setColor, setColor, setSelfShadowing, setShader, toObjectSpace, toObjectSpace, transform, transformNormal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Algebraic getInstance(RMLReader in)
                             throws java.io.IOException
Throws:
java.io.IOException

getPolynomial

protected Algebraic.RayPoly getPolynomial(Ray r)
x^{4} + y^{4} + z^{4} + 1 - x^{2} - y^{2} - z^{2} - y^{2}z^{2} - z^{2}x^{2} - x^{2}y^{2} = 0

Overrides:
getPolynomial in class Algebraic

getN

public void getN(Hit hit,
                 Vector3f n)
Calculate the normal components, this is simply the partial derivitives in x, y, and z.

Specified by:
getN in interface NormalCalculator
Overrides:
getN in class Algebraic

XJRT Rendering Toolkit 1.0b06