patchy
Interface Patchy

All Known Implementing Classes:
Patch, PatchGroup

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

BEZIER

static final double[][] BEZIER

BSPLINE

static final double[][] BSPLINE

CATMULL_ROM

static final double[][] CATMULL_ROM

HERMITE

static final double[][] HERMITE
Method Detail

getBounds

BoundingVolume getBounds()

setBasis

void setBasis(double[][] basis)

Set the basis matrix for this

Parameters:
basis -

setGridSteps

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.

Parameters:
gridSteps -

draw

void draw(processing.core.PApplet p)

draw

void draw(processing.core.PApplet p,
          processing.core.PImage texture)

drawControlPoints

void drawControlPoints(processing.core.PApplet p)

scale

BoundingVolume scale(double scale)

translate

void translate(double dx,
               double dy,
               double dz)


processing library patchy by Jonathan Feinberg. (c) 2011