HE_Mesh
5.1.0
|
Public Member Functions | |
RMesh () | |
RMesh (RMesh m) | |
void | addStrip () |
void | draw (PGraphics g) |
void | draw (PApplet g) |
RPoint[] | getHandles () |
RPoint[] | getPoints () |
RPoint | getPoint (float t) |
RPoint | getTangent (float t) |
RPoint[] | getTangents () |
RPoint[][] | getPointsInPaths () |
RPoint[][] | getHandlesInPaths () |
RPoint[][] | getTangentsInPaths () |
boolean | contains (RPoint p) |
int | getType () |
void | transform (RMatrix m) |
RMesh | toMesh () |
RPolygon | toPolygon () throws RuntimeException |
RShape | toShape () throws RuntimeException |
![]() | |
abstract void | draw (PGraphics g) |
abstract void | draw (PApplet g) |
void | draw () |
abstract RPoint | getPoint (float t) |
abstract RPoint | getTangent (float t) |
abstract RPoint[] | getHandles () |
abstract RPoint[] | getPoints () |
abstract RPoint[] | getTangents () |
abstract RPoint[][] | getHandlesInPaths () |
abstract RPoint[][] | getPointsInPaths () |
abstract RPoint[][] | getTangentsInPaths () |
abstract boolean | contains (RPoint p) |
abstract int | getType () |
abstract RShape | toShape () |
void | print () |
void | setFill (boolean _fill) |
void | setFill (int _fillColor) |
void | setFill (String str) |
void | setStroke (boolean _stroke) |
void | setStroke (int _strokeColor) |
void | setStroke (String str) |
void | setStrokeWeight (float value) |
void | setStrokeWeight (String str) |
void | setStrokeCap (String str) |
void | setStrokeJoin (String str) |
void | setStrokeAlpha (int opacity) |
void | setStrokeAlpha (String str) |
void | setFillAlpha (int opacity) |
void | setFillAlpha (String str) |
void | setAlpha (float opacity) |
void | setAlpha (int opacity) |
void | setAlpha (String str) |
RStyle | getStyle () |
void | setStyle (RStyle s) |
void | setName (String str) |
float[] | getCurveLengths () |
float | getCurveLength () |
RPolygon | toPolygon () |
RMesh | toMesh () |
void | transform (RMatrix m) |
void | transform (float x, float y, float w, float h) |
boolean | isIn (PGraphics g) |
boolean | isIn (PApplet g) |
RMatrix | getCenteringTransf (PGraphics g) throws RuntimeException |
RMatrix | getCenteringTransf (PGraphics g, float margin) throws RuntimeException |
void | centerIn (PGraphics g) |
void | centerIn (PGraphics g, float margin) |
void | centerIn (PGraphics g, float margin, float sclDamping, float trnsDamping) throws RuntimeException |
void | rotate (float angle) |
void | scale (float sx, float sy) |
void | scale (float s) |
Public Attributes | |
int | type = RGeomElem.MESH |
![]() | |
float | width |
float | height |
String | name = "" |
Related Functions | |
(Note that these are not member functions.) | |
RStrip[] | strips |
int | countStrips () |
void | addStrip (RStrip s) |
void | setCurrent (int indStrip) |
void | addPoint (RPoint p) |
void | addPoint (float x, float y) |
void | addPoint (int indStrip, RPoint p) |
void | addPoint (int indStrip, float x, float y) |
![]() | |
boolean | contains (RGeomElem shp) |
boolean | containsBounds (RGeomElem shp) |
boolean | containsHandles (RGeomElem shp) |
boolean | contains (RPoint[] ps) |
boolean | intersects (RGeomElem shp) |
boolean | intersectsBounds (RGeomElem shp) |
boolean | intersectsHandles (RGeomElem shp) |
boolean | intersects (RPoint[] ps) |
void | transform (float x, float y, float w, float h, boolean keepAspectRatio) |
RRectangle | getBounds () |
RPoint[] | getBoundsPoints () |
RPoint | getTopLeft () |
RPoint | getTopRight () |
RPoint | getBottomLeft () |
RPoint | getBottomRight () |
float | getX () |
float | getY () |
float | getOrigHeight () |
float | getOrigWidth () |
float | getWidth () |
float | getHeight () |
RPoint | getCenter () |
RPoint | getCentroid () |
float | getArea () |
RMatrix | getCenteringTransf (PGraphics g, float margin, float sclDamping, float trnsDamping) throws RuntimeException |
void | translate (float tx, float ty) |
void | translate (RPoint t) |
void | rotate (float angle, float vx, float vy) |
void | rotate (float angle, RPoint v) |
void | scale (float sx, float sy, RPoint p) |
void | scale (float sx, float sy, float x, float y) |
void | scale (float s, RPoint p) |
void | scale (float s, float x, float y) |
void | skewX (float angle) |
void | skewY (float angle) |
void | shear (float shx, float shy) |
Additional Inherited Members | |
![]() | |
static final int | SHAPE = 0 |
static final int | SUBSHAPE = 1 |
static final int | COMMAND = 2 |
static final int | POLYGON = 3 |
static final int | CONTOUR = 4 |
static final int | MESH = 5 |
static final int | TRISTRIP = 6 |
static final int | GROUP = 7 |
static final int | UNKNOWN = 8 |
![]() | |
void | saveContext (PGraphics g) |
void | saveContext (PApplet p) |
void | saveContext () |
void | restoreContext (PGraphics g) |
void | restoreContext (PApplet p) |
void | restoreContext () |
void | setContext (PGraphics g) |
void | setContext (PApplet p) |
void | setContext () |
void | setStyle (RGeomElem p) |
void | setStyle (String styleString) |
void | calculateCurveLengths () |
void | updateOrigParams () |
![]() | |
float[] | lenCurves |
float | lenCurve = -1F |
RStyle | style = new RStyle() |
RMesh is a reduced interface for creating, holding and drawing meshes. A mesh is a group of triangular strips (RStrip). RMesh Geometry
geomerative.RMesh.RMesh | ( | ) |
Create a new empty mesh. createaMesh
geomerative.RMesh.RMesh | ( | RMesh | m | ) |
Copy a mesh. createaMesh
m | the object of which to make a copy |
void geomerative.RMesh.addStrip | ( | ) |
boolean geomerative.RMesh.contains | ( | RPoint | p | ) |
void geomerative.RMesh.draw | ( | PGraphics | g | ) |
Use this method to draw the mesh. drawMesh
g | PGraphics, the graphics object on which to draw the mesh |
void geomerative.RMesh.draw | ( | PApplet | g | ) |
RPoint [] geomerative.RMesh.getHandles | ( | ) |
RPoint [][] geomerative.RMesh.getHandlesInPaths | ( | ) |
RPoint geomerative.RMesh.getPoint | ( | float | t | ) |
RPoint [] geomerative.RMesh.getPoints | ( | ) |
RPoint [][] geomerative.RMesh.getPointsInPaths | ( | ) |
RPoint geomerative.RMesh.getTangent | ( | float | t | ) |
RPoint [] geomerative.RMesh.getTangents | ( | ) |
RPoint [][] geomerative.RMesh.getTangentsInPaths | ( | ) |
int geomerative.RMesh.getType | ( | ) |
Use this method to get the type of element this is. RMesh_getType
RMesh geomerative.RMesh.toMesh | ( | ) |
RPolygon geomerative.RMesh.toPolygon | ( | ) | throws RuntimeException |
RShape geomerative.RMesh.toShape | ( | ) | throws RuntimeException |
void geomerative.RMesh.transform | ( | RMatrix | m | ) |
Use this method to transform the mesh. transformMesh
m | RMatrix, the matrix of the affine transformation to apply to the mesh |
|
related |
Add a new point to the current strip. addPoint
p | the point to be added ( ) ( ) |
|
related |
Add a new point to the current strip. addPoint
x | the x coordinate of the point to be added |
y | the y coordinate of the point to be added ( ) ( ) |
|
related |
Add a new point to the given strip. addPoint
indStrip | the index of the strip to which the point will be added |
p | the point to be added ( ) ( ) |
|
related |
Add a new point to the given strip. addPoint
indStrip | the index of the strip to which the point will be added |
x | the x coordinate of the point to be added |
y | the y coordinate of the point to be added ( ) ( ) |
|
related |
Add a new strip. addStrip
s | the strip to be added ( ) |
|
related |
Use this method to count the number of strips in the mesh. countStrips
|
related |
Use this method to set the current strip to which append points. addStrip ( )
|
related |
Array of RStrip objects holding the contours of the polygon. strips
( ) ( )
int geomerative.RMesh.type = RGeomElem.MESH |