diff --git a/core/src/processing/core/PShape.java b/core/src/processing/core/PShape.java
index 44ff15115c..a2f2c44804 100644
--- a/core/src/processing/core/PShape.java
+++ b/core/src/processing/core/PShape.java
@@ -2158,6 +2158,15 @@ public PVector getVertex(int index) {
return getVertex(index, null);
}
+ public float[] getVertexData(int index)
+ {
+ return vertices[index];
+ }
+
+ public PMatrix getMatrix()
+ {
+ return matrix;
+ }
/**
* @param vec PVector to assign the data to
@@ -2387,14 +2396,14 @@ public void setFill(boolean fill) {
/**
* ( begin auto-generated from PShape_setFill.xml )
*
- * The setFill() method defines the fill color of a PShape.
- * This method is used after shapes are created or when a shape is defined explicitly
- * (e.g. createShape(RECT, 20, 20, 80, 80)) as shown in the above example.
- * When a shape is created with beginShape() and endShape(), its
- * attributes may be changed with fill() and stroke() within
- * beginShape() and endShape(). However, after the shape is
- * created, only the setFill() method can define a new fill value for
- * the PShape.
+ * The setFill() method defines the fill color of a PShape.
+ * This method is used after shapes are created or when a shape is defined explicitly
+ * (e.g. createShape(RECT, 20, 20, 80, 80)) as shown in the above example.
+ * When a shape is created with beginShape() and endShape(), its
+ * attributes may be changed with fill() and stroke() within
+ * beginShape() and endShape(). However, after the shape is
+ * created, only the setFill() method can define a new fill value for
+ * the PShape.
*
* ( end auto-generated )
*
@@ -2543,14 +2552,14 @@ public void setStroke(boolean stroke) {
/**
* ( begin auto-generated from PShape_setStroke.xml )
*
- * The setStroke() method defines the outline color of a PShape.
- * This method is used after shapes are created or when a shape is defined
- * explicitly (e.g. createShape(RECT, 20, 20, 80, 80)) as shown in
- * the above example. When a shape is created with beginShape() and
- * endShape(), its attributes may be changed with fill() and
- * stroke() within beginShape() and endShape().
- * However, after the shape is created, only the setStroke() method
- * can define a new stroke value for the PShape.
+ * The setStroke() method defines the outline color of a PShape.
+ * This method is used after shapes are created or when a shape is defined
+ * explicitly (e.g. createShape(RECT, 20, 20, 80, 80)) as shown in
+ * the above example. When a shape is created with beginShape() and
+ * endShape(), its attributes may be changed with fill() and
+ * stroke() within beginShape() and endShape().
+ * However, after the shape is created, only the setStroke() method
+ * can define a new stroke value for the PShape.
*
* ( end auto-generated )
*
@@ -3442,4 +3451,4 @@ protected void colorCalcARGB(int argb, float alpha) {
calcAlpha = (calcAi != 255);
}
-}
\ No newline at end of file
+}