j3d.examples.surfacer
Class Knot

java.lang.Object
  extended by j3d.examples.surfacer.Knot

public class Knot
extends java.lang.Object


Field Summary
 javax.media.j3d.QuadArray knotGeometry
           
 
Constructor Summary
Knot(javax.media.j3d.Appearance knotAppearance)
          Constructs a knot with 28 divisions per strip, 14 strips, appearance 'knotAppearance' at 0,0,0.
Knot(int divs, int strips, javax.media.j3d.Appearance knotAppearance)
          Constructs a knot with number of divisions per strip 'divs', number of strips 'strips', appearance 'knotAppearance' at 0,0,0.
Knot(int divs, int strips, float xpos, float ypos, float zpos, javax.media.j3d.Appearance knotAppearance)
          Constructs a knot with number of divisions per strip 'divs', number of strips 'strips', appearance 'knotAppearance' at xpos,ypos,zpos.
 
Method Summary
 javax.media.j3d.Shape3D getChild()
           
 javax.media.j3d.QuadArray getQuadArray()
           
 void Scale(float xs, float ys, float zs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

knotGeometry

public javax.media.j3d.QuadArray knotGeometry
Constructor Detail

Knot

public Knot(javax.media.j3d.Appearance knotAppearance)
Constructs a knot with 28 divisions per strip, 14 strips, appearance 'knotAppearance' at 0,0,0.


Knot

public Knot(int divs,
            int strips,
            javax.media.j3d.Appearance knotAppearance)
Constructs a knot with number of divisions per strip 'divs', number of strips 'strips', appearance 'knotAppearance' at 0,0,0.


Knot

public Knot(int divs,
            int strips,
            float xpos,
            float ypos,
            float zpos,
            javax.media.j3d.Appearance knotAppearance)
Constructs a knot with number of divisions per strip 'divs', number of strips 'strips', appearance 'knotAppearance' at xpos,ypos,zpos.

Method Detail

Scale

public void Scale(float xs,
                  float ys,
                  float zs)

getChild

public javax.media.j3d.Shape3D getChild()

getQuadArray

public javax.media.j3d.QuadArray getQuadArray()