de.jreality.tutorial.geom
Class TubeFactory02

java.lang.Object
  extended by de.jreality.tutorial.geom.TubeFactory02

public class TubeFactory02
extends 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

Constructor Summary
TubeFactory02()
           
 
Method Summary
 void colorVertices(IndexedLineSet ils, double[] color1, double[] color2)
           
static Plugin createShrinkPanel(Component c, String title)
           
 void doIt()
           
static void main(String[] args)
           
 IndexedFaceSet tubedTorusKnot(double R, double r, double tubeRadius)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TubeFactory02

public TubeFactory02()
Method Detail

main

public static void main(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(Component c,
                                       String title)