de.jreality.tutorial.geom
Class TubeFactory02
java.lang.Object
de.jreality.tutorial.geom.TubeFactory02
public class TubeFactory02
- extends java.lang.Object
This example shows how to use PolygonalTubeFactory
to create a tube around a torus knot.
It's organized with a single doIt() method to allow creation of other classes which refer to the same
code but in a different package of the tutorial.
- Author:
- Charles Gunn
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TubeFactory02
public TubeFactory02()
main
public static void main(java.lang.String[] args)
doIt
public void doIt()
tubedTorusKnot
public IndexedFaceSet tubedTorusKnot(double R,
double r,
double tubeRadius)
colorVertices
public void colorVertices(IndexedLineSet ils,
double[] color1,
double[] color2)
createShrinkPanel
public static Plugin createShrinkPanel(java.awt.Component c,
java.lang.String title)