de.jreality.tutorial.geom
Class TubeFactory02
java.lang.Object
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. In this case, see InspectorExample
.
- Author:
- Charles Gunn
TubeFactory02
public TubeFactory02()
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)