public interface Patchy
Modifier and Type | Field and Description |
---|---|
static double[][] |
BEZIER |
static double[][] |
BSPLINE |
static double[][] |
CATMULL_ROM |
static double[][] |
HERMITE |
Modifier and Type | Method and Description |
---|---|
void |
draw(PApplet p) |
void |
draw(PApplet p,
PImage texture) |
void |
drawControlPoints(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) |
static final double[][] BEZIER
static final double[][] BSPLINE
static final double[][] CATMULL_ROM
static final double[][] HERMITE
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(PApplet p)
void draw(PApplet p, PImage texture)
void drawControlPoints(PApplet p)
BoundingVolume scale(double scale)
void translate(double dx, double dy, double dz)
processing library patchy by Jonathan Feinberg. (c) 2013