public class HermiteRenderer
extends java.lang.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
Constructor | Description |
---|---|
HermiteRenderer(Graphics3D g3d) |
Modifier and Type | Method | Description |
---|---|---|
void |
renderHermiteRibbon(boolean fill,
boolean border,
int tension,
Point3i p0,
Point3i p1,
Point3i p2,
Point3i p3,
Point3i p4,
Point3i p5,
Point3i p6,
Point3i p7,
int aspectRatio,
int fillType) |
|
void |
renderHermiteRope(boolean fill,
int tension,
int diameterBeg,
int diameterMid,
int diameterEnd,
Point3i p0,
Point3i p1,
Point3i p2,
Point3i p3) |
public HermiteRenderer(Graphics3D g3d)
public void renderHermiteRope(boolean fill, int tension, int diameterBeg, int diameterMid, int diameterEnd, Point3i p0, Point3i p1, Point3i p2, Point3i p3)
public void renderHermiteRibbon(boolean fill, boolean border, int tension, Point3i p0, Point3i p1, Point3i p2, Point3i p3, Point3i p4, Point3i p5, Point3i p6, Point3i p7, int aspectRatio, int fillType)
fill
- border
- tension
- p0
- p1
- p2
- p3
- p4
- p5
- p6
- p7
- aspectRatio
- fillType
- 1 front; -1 back; 0 both