public class TubeFactory02 extends Object
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.Constructor and Description |
---|
TubeFactory02() |
Modifier and Type | Method and Description |
---|---|
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) |
public static void main(String[] args)
public void doIt()
public IndexedFaceSet tubedTorusKnot(double R, double r, double tubeRadius)
public void colorVertices(IndexedLineSet ils, double[] color1, double[] color2)