j3d.polyViewer.vec3
Class HeightFieldRangePoints

java.lang.Object
  extended by j3d.polyViewer.vec3.HeightFieldRangePoints
All Implemented Interfaces:
Vec3FunctionInterface

public class HeightFieldRangePoints
extends java.lang.Object
implements Vec3FunctionInterface


Field Summary
static double pi
           
static double sqrt_2
           
static double twoPi
           
 
Constructor Summary
HeightFieldRangePoints()
           
 
Method Summary
 double getDeltaTheta()
           
 Vec3 getPolarVec3(double r1, double theta1, double r2, double theta2)
          This is called to get a 3D vertex from the range points.
 Points getRangePoints()
           
 Points getRangePoints(double theta)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sqrt_2

public static final double sqrt_2

pi

public static final double pi
See Also:
Constant Field Values

twoPi

public static final double twoPi
See Also:
Constant Field Values
Constructor Detail

HeightFieldRangePoints

public HeightFieldRangePoints()
                       throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getRangePoints

public Points getRangePoints()

getRangePoints

public Points getRangePoints(double theta)

getPolarVec3

public Vec3 getPolarVec3(double r1,
                         double theta1,
                         double r2,
                         double theta2)
This is called to get a 3D vertex from the range points. The points are in strips. R1 increases the distance from the points to center axis of revolution r=f(z,theta) and z is = f(theta2) let theta2 range from 0 to height of image you need to build an array of radii like in TopFrame.java

Specified by:
getPolarVec3 in interface Vec3FunctionInterface
Parameters:
r1 - radius scale of cylinder
theta1 - sweep around center
r2 - unused
theta2 - sweep up center
Returns:
a point in cylinder coordinates

getDeltaTheta

public double getDeltaTheta()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object