BEZIER, BSPLINE, CATMULL_ROM, HERMITE
Constructor and Description |
---|
PatchGroup() |
Modifier and Type | Method and Description |
---|---|
void |
add(Patchy patch) |
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.
|
static Patchy |
teacup() |
static Patchy |
teapot() |
void |
translate(double dx,
double dy,
double dz) |
public void add(Patchy patch)
public void drawControlPoints(PApplet p)
drawControlPoints
in interface Patchy
public BoundingVolume getBounds()
public void setBasis(double[][] basis)
Patchy
Set the basis matrix for this
public void setGridSteps(int gridSteps)
Patchy
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
.
setGridSteps
in interface Patchy
public BoundingVolume scale(double scale)
public void translate(double dx, double dy, double dz)
public static Patchy teacup()
public static Patchy teapot()
processing library patchy by Jonathan Feinberg. (c) 2013