com.sun.j3d.utils.geometry
Class Stripifier.Istream

java.lang.Object
  extended by com.sun.j3d.utils.geometry.Stripifier.Istream
Enclosing class:
Stripifier

 class Stripifier.Istream
extends java.lang.Object


Field Summary
(package private)  boolean fan
           
(package private)  int head
           
(package private)  Stripifier.Vertex[] istream
           
(package private)  int length
           
(package private)  int tail
           
 
Constructor Summary
Stripifier.Istream(Stripifier.Vertex[] list, int size, boolean isFan)
          creates a new Istream to store the triangle strip
 
Method Summary
(package private)  void addStream(Stripifier.Istream strm)
          concats two streams into one big stream
(package private)  void append(Stripifier.Vertex vertex)
          adds a new vertex to the end of the stream makes the int array bigger, if necessary
(package private)  void growArray()
          makes the array bigger, if necessary
(package private)  void invert()
          inverts the istream
(package private)  void swapEnd()
          turns the encoding (..., -3, -2, -1) into (....
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fan

boolean fan

length

int length

istream

Stripifier.Vertex[] istream

head

int head

tail

int tail
Constructor Detail

Stripifier.Istream

Stripifier.Istream(Stripifier.Vertex[] list,
                   int size,
                   boolean isFan)
creates a new Istream to store the triangle strip

Method Detail

append

void append(Stripifier.Vertex vertex)
adds a new vertex to the end of the stream makes the int array bigger, if necessary


swapEnd

void swapEnd()
turns the encoding (..., -3, -2, -1) into (.... -3, -2, -3, -1) so that zero-area triangle (-3, -2. -3) is added


growArray

void growArray()
makes the array bigger, if necessary


invert

void invert()
inverts the istream


addStream

void addStream(Stripifier.Istream strm)
concats two streams into one big stream



Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.