|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectunwrap.Unwrap
public class Unwrap
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 |
|---|
public static processing.core.PApplet p
public static processing.core.PGraphics g
public static processing.core.PFont font
public UTriangle[] t
public UPoint[] points
public final java.lang.String VERSION
| Constructor Detail |
|---|
public Unwrap(processing.core.PApplet theParent)
public Unwrap(processing.core.PApplet theParent,
UTriangle[] _t,
UPoint[] _points)
| Method Detail |
|---|
public void beginStrip()
public void addPoint(Vec3D v)
public void addPoint(float x,
float y,
float z)
public void endStrip()
public void endStrip(int end)
public void draw3d()
public void drawNormals()
public void update()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||