|
IsoSurface Rendering of an AR Representation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rlaramee.Interpolator
Description: The interpolator handles all of the interpolation calculations. When a contour value falls between two vertex values in a cube, a linear interpolation is computed to find out where between the two vertices the intersection occurs. Having a separate interpolator class allows for flexibility of implementaion. We may decide at some point that we may want to implement different kinds of interpolation other than linear.
start date Sun 02 May 1999
Constructor Summary | |
Interpolator()
constructor |
Method Summary | |
private float |
interpolate(double coord1,
double coord2,
double data1,
double data2,
double isoValue)
The formula we'll use to interpolate: |
float |
interpolate(float scalar1,
float scalar2)
This interpolating function is called from Cube.subDivide() It is simpler than the interpolate function for 2 cube vertices. |
TriangleVertex |
interpolate(int axis,
CubeVertex cv1,
CubeVertex cv2,
double isoValue,
byte edge)
This is a linear interpolation function for two cube vertices with x,y,z coordinates. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Interpolator()
Method Detail |
public TriangleVertex interpolate(int axis, CubeVertex cv1, CubeVertex cv2, double isoValue, byte edge)
axis
- the axis along which to interpolatev1
- 1st cube vertexv2
- 2nd cube vertexisoValue
- the isoValue between the verticesedge
- the cube edge that the new vertex lies on (0 - 11)private float interpolate(double coord1, double coord2, double data1, double data2, double isoValue)
start coordinate + (interpolated value * scale factor)
data1
- the 1st vertex's data valuedata2
- the 2nd vertex's data valuecoord1
- the 1st coordinate value to interpolate betweencoord2
- the 2nd coordinate value to interpolate betweenisovalue
- the isosurface valuepublic float interpolate(float scalar1, float scalar2)
This is because we are not looking for an isosurface. We are just subdividing a cube into 8 child cubes.
scalar1
- the 1st scalar valuescalar2
- the 2nd scalar value
|
IsoSurface Rendering of an AR Representation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |