org.jmol.g3d
public class Hermite3D extends Object
Implementation of hermite curves for drawing smoothed curves that pass through specified points.
Examples of usage in Jmol include the commands: trace,
ribbons and cartoons
.
for some useful background info about hermite curves check out http://www.cubic.org/docs/hermite.htm Technically, Jmol implements a Cardinal spline varient of the Hermitian spline
Field Summary | |
---|---|
Point3f | a1 |
Point3f | a2 |
Point3f | b1 |
Point3f | b2 |
Point3f | c1 |
Point3f | c2 |
Point3f | d1 |
Point3f | d2 |
Vector3f | depth1 |
JmolRendererInterface | g3d |
boolean[] | needToFill |
Point3f[] | pBotLeft |
Point3f[] | pBotRight |
Point3i[] | pLeft |
Point3i[] | pRight |
Point3f[] | pTopLeft |
Point3f[] | pTopRight |
float[] | sLeft |
int | sp |
float[] | sRight |
Vector3f | T1 |
Vector3f | T2 |
Constructor Summary | |
---|---|
Hermite3D(JmolRendererInterface g3d) |
Method Summary | |
---|---|
static void | getHermiteList(int tension, Tuple3f p0, Tuple3f p1, Tuple3f p2, Tuple3f p3, Tuple3f p4, Tuple3f[] list, int index0, int n) |
void | render(boolean tFill, int tension, int diameterBeg, int diameterMid, int diameterEnd, Point3i p0, Point3i p1, Point3i p2, Point3i p3) |
void | render2(boolean fill, boolean border, int tension, Point3i p0, Point3i p1, Point3i p2, Point3i p3, Point3i p4, Point3i p5, Point3i p6, Point3i p7, int aspectRatio) |
void | render2x(boolean fill, int tension, Point3i p0, Point3i p1, Point3i p2, Point3i p3, Point3i p4, Point3i p5, Point3i p6, Point3i p7) |
static void | set(Point3f p3f, Point3i p3i) |
void | setDepth(Vector3f depth, Point3f c, Point3f a, Point3f b, float ratio) |
void | setPoint(Point3f a1, Point3f a, Vector3f depth, int direction) |