|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Patchy
| Field Summary | |
|---|---|
static double[][] |
BEZIER
|
static double[][] |
BSPLINE
|
static double[][] |
CATMULL_ROM
|
static double[][] |
HERMITE
|
| Method Summary | |
|---|---|
void |
draw(processing.core.PApplet p)
|
void |
draw(processing.core.PApplet p,
processing.core.PImage texture)
|
void |
drawControlPoints(processing.core.PApplet p)
|
BoundingVolume |
getBounds()
|
BoundingVolume |
scale(double scale)
|
void |
setBasis(double[][] basis)
Set the basis matrix for this |
void |
setGridSteps(int gridSteps)
Sets the "smoothness" of the rendered patch. |
void |
translate(double dx,
double dy,
double dz)
|
| Field Detail |
|---|
static final double[][] BEZIER
static final double[][] BSPLINE
static final double[][] CATMULL_ROM
static final double[][] HERMITE
| Method Detail |
|---|
BoundingVolume getBounds()
void setBasis(double[][] basis)
Set the basis matrix for this
basis - void setGridSteps(int gridSteps)
Sets the "smoothness" of the rendered patch.
When generating the triangle mesh for this patch, use gridSteps X gridSteps vertices. Therefore, the cost of rendering this patch rises as the square of this parameter.
The default value is 20.
gridSteps - void draw(processing.core.PApplet p)
void draw(processing.core.PApplet p,
processing.core.PImage texture)
void drawControlPoints(processing.core.PApplet p)
BoundingVolume scale(double scale)
void translate(double dx,
double dy,
double dz)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||