j3d.examples.surfacer
Class SmartShell
java.lang.Object
j3d.examples.surfacer.SmartShell
public class SmartShell
- extends java.lang.Object
Constructor Summary |
SmartShell(javax.media.j3d.Appearance shellAppearance)
Constructs a shell with 28 divisions per strip,
14 strips, appearance 'shellAppearance' at 0,0,0. |
SmartShell(int divs,
int strips,
javax.media.j3d.Appearance shellAppearance)
Constructs a shell with number of divisions per
strip 'divs', number of strips 'strips', appearance
'shellAppearance' at 0,0,0. |
SmartShell(int divs,
int strips,
float xpos,
float ypos,
float zpos,
javax.media.j3d.Appearance shellAppearance)
Constructs a shell with number of divisions per
strip 'divs', number of strips 'strips', appearance
'shellAppearance' 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 |
shellGeometry
public javax.media.j3d.QuadArray shellGeometry
SmartShell
public SmartShell(javax.media.j3d.Appearance shellAppearance)
- Constructs a shell with 28 divisions per strip,
14 strips, appearance 'shellAppearance' at 0,0,0.
SmartShell
public SmartShell(int divs,
int strips,
javax.media.j3d.Appearance shellAppearance)
- Constructs a shell with number of divisions per
strip 'divs', number of strips 'strips', appearance
'shellAppearance' at 0,0,0.
SmartShell
public SmartShell(int divs,
int strips,
float xpos,
float ypos,
float zpos,
javax.media.j3d.Appearance shellAppearance)
- Constructs a shell with number of divisions per
strip 'divs', number of strips 'strips', appearance
'shellAppearance' at xpos,ypos,zpos.
Scale
public void Scale(float xs,
float ys,
float zs)
getChild
public javax.media.j3d.Shape3D getChild()
getQuadArray
public javax.media.j3d.QuadArray getQuadArray()