|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgeomerative.RStrip
public class RStrip
RStrip is a reduced interface for creating, holding and drawing triangle strips. Triangle strips are ordered lists of points (RPoint) which define the vertices of a mesh.
| Field Summary | |
|---|---|
int |
type
|
RPoint[] |
vertices
Array of RPoint objects holding the vertices of the strip. |
| Constructor Summary | |
|---|---|
RStrip()
|
|
RStrip(RStrip s)
Use this method to create a new strip. |
|
| Method Summary | |
|---|---|
void |
addVertex(float x,
float y)
|
void |
addVertex(RPoint p)
Use this method to add new vertices to the strip. |
int |
countVertices()
Use this method to count the number of vertices in the strip. |
void |
draw(processing.core.PGraphics g)
Use this method to draw the strip. |
RContour |
getBounds()
Use this method to get the bounding box of the strip. |
RPoint[] |
getHandles()
Use this to get the vertices of the strip. |
RPoint[] |
getPoints()
Use this to get the vertices of the strip. |
void |
transform(RMatrix m)
Use this method to transform the strip. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int type
public RPoint[] vertices
| Constructor Detail |
|---|
public RStrip(RStrip s)
s - the object of which to make a copypublic RStrip()
| Method Detail |
|---|
public int countVertices()
public void draw(processing.core.PGraphics g)
g - PGraphics, the graphics object on which to draw the strippublic void addVertex(RPoint p)
public void addVertex(float x,
float y)
public RContour getBounds()
public RPoint[] getHandles()
public RPoint[] getPoints()
public void transform(RMatrix m)
m - RMatrix, the matrix of the affine transformation to apply to the strip
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||