j3d.org Code

org.j3d.renderer.java3d.geom
Class Shell

java.lang.Object
  extended byorg.j3d.renderer.java3d.geom.Shell

public class Shell
extends java.lang.Object

A mobius strip with specified number of divisions per circle-strip, number of divisions per strip (lengthwise), and appearance.

The algorithm was adapted from Tore Nordstrand's Math Image Gallery: http://www.uib.no/people/nfytn/mathgal.htm. Needs to be cleaned up. There is a brutal workaround.

Version:
$Revision: 1.1 $
Author:
Unknown

Field Summary
 javax.media.j3d.QuadArray shellGeometry
           
 
Constructor Summary
Shell(javax.media.j3d.Appearance shellAppearance)
          Constructs a shell with 28 divisions per strip, 14 strips, appearance 'shellAppearance' at 0,0,0.
Shell(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.
Shell(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shellGeometry

public javax.media.j3d.QuadArray shellGeometry
Constructor Detail

Shell

public Shell(javax.media.j3d.Appearance shellAppearance)
Constructs a shell with 28 divisions per strip, 14 strips, appearance 'shellAppearance' at 0,0,0.


Shell

public Shell(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.


Shell

public Shell(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 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()

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org