snakeprogram3d
Class ThreeDDeformation

java.lang.Object
  extended by snakeprogram3d.ThreeDDeformation

public class ThreeDDeformation
extends java.lang.Object

This class deforms a three-d snake, and re-positions points so that they are equally spaced.


Method Summary
 void addSnakePoints()
          Replaces too many or two few points with equal distance points.
 void deformSnake()
          Solves the euler step.
 void energyWithGradient(double[] Vx, double[] Vy, double[] Vz)
          Modifies Vx,Vy in place to find the forces it uses the image term and the 'stretching' term.
 void initializeMatrix()
           
 void setAlpha(double alpha)
           
 void setBackInt(double backInt)
           
 void setBeta(double beta)
           
 void setForInt(double forInt)
           
 void setGamma(double gamma)
           
 void setStretch(double stretch)
           
 void setWeight(double weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setAlpha

public void setAlpha(double alpha)

setBeta

public void setBeta(double beta)

setGamma

public void setGamma(double gamma)

setWeight

public void setWeight(double weight)

setForInt

public void setForInt(double forInt)

setBackInt

public void setBackInt(double backInt)

setStretch

public void setStretch(double stretch)

deformSnake

public void deformSnake()
Solves the euler step.


initializeMatrix

public void initializeMatrix()

addSnakePoints

public void addSnakePoints()
                    throws java.lang.IllegalAccessException
Replaces too many or two few points with equal distance points.

Throws:
java.lang.IllegalAccessException - when the snake is too long.

energyWithGradient

public void energyWithGradient(double[] Vx,
                               double[] Vy,
                               double[] Vz)
Modifies Vx,Vy in place to find the forces it uses the image term and the 'stretching' term.