unwrap
Class Unwrap

java.lang.Object
  extended by unwrap.Unwrap

public class Unwrap
extends java.lang.Object

the main class


Field Summary
static processing.core.PFont font
           
static processing.core.PGraphics g
           
static processing.core.PApplet p
           
 UPoint[] points
           
 UTriangle[] t
           
 java.lang.String VERSION
           
 
Constructor Summary
Unwrap(processing.core.PApplet theParent)
          initialize the unwrapping class and give the parent PApplet.
Unwrap(processing.core.PApplet theParent, UTriangle[] _t, UPoint[] _points)
          initialize the unwrapping class and give the parent PApplet, the required triangles and triangle points.
 
Method Summary
 void addPoint(float x, float y, float z)
          add a point to the strip, similar to processing vertex(x,y,z).
 void addPoint(Vec3D v)
          add a point to the strip, similar to processing vertex(x,y,z).
 void beginStrip()
          create a triangleStrip, similar to processing beginShape(TRIANGLE_STRIP).
 void draw3d()
          draw the triangles in 3d.
 void drawNormals()
          draw the triangle normals with default length.
 void endStrip()
          end the trianglestrip, similar to processing endShape().
 void endStrip(int end)
          end and close the trianglestrip, similar to processing endShape(CLOSE).
 void update()
          update the point coordinates.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p

public static processing.core.PApplet p

g

public static processing.core.PGraphics g

font

public static processing.core.PFont font

t

public UTriangle[] t

points

public UPoint[] points

VERSION

public final java.lang.String VERSION
See Also:
Constant Field Values
Constructor Detail

Unwrap

public Unwrap(processing.core.PApplet theParent)
initialize the unwrapping class and give the parent PApplet.


Unwrap

public Unwrap(processing.core.PApplet theParent,
              UTriangle[] _t,
              UPoint[] _points)
initialize the unwrapping class and give the parent PApplet, the required triangles and triangle points.

Method Detail

beginStrip

public void beginStrip()
create a triangleStrip, similar to processing beginShape(TRIANGLE_STRIP).


addPoint

public void addPoint(Vec3D v)
add a point to the strip, similar to processing vertex(x,y,z).


addPoint

public void addPoint(float x,
                     float y,
                     float z)
add a point to the strip, similar to processing vertex(x,y,z).


endStrip

public void endStrip()
end the trianglestrip, similar to processing endShape().


endStrip

public void endStrip(int end)
end and close the trianglestrip, similar to processing endShape(CLOSE).


draw3d

public void draw3d()
draw the triangles in 3d.


drawNormals

public void drawNormals()
draw the triangle normals with default length.


update

public void update()
update the point coordinates.



processing library unwrappingLib by Martin Fuchs. (c) 2009