|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnakeprogram3d.ThreeDDeformation
public class ThreeDDeformation
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 |
---|
public void setAlpha(double alpha)
public void setBeta(double beta)
public void setGamma(double gamma)
public void setWeight(double weight)
public void setForInt(double forInt)
public void setBackInt(double backInt)
public void setStretch(double stretch)
public void deformSnake()
public void initializeMatrix()
public void addSnakePoints() throws java.lang.IllegalAccessException
java.lang.IllegalAccessException
- when the snake is too long.public void energyWithGradient(double[] Vx, double[] Vy, double[] Vz)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |