| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,12 +6,12 @@ and incorporating various pull requests. | |||
| 6 | 6 | ||
| 7 | 7 | [ changes ] | |
| 8 | 8 | ||
| 9 | - + Removed the sound library, it's now available as its own library | ||
| 9 | + + Removed the sound library. It's now available as its own library | ||
| 10 | 10 | from the Library Manager. | |
| 11 | 11 | ||
| 12 | 12 | + Change how languages are loaded, adding a local override. | |
| 13 | 13 | ||
| 14 | - + Update to use JRE/JDK 7u72 . | ||
| 14 | + + Update to use JRE/JDK 7u72 | ||
| 15 | 15 | ||
| 16 | 16 | + Implement the active() method for Serial and Server | |
| 17 | 17 | https://github.com/processing/processing/issues/2364 | |
@@ -34,6 +34,10 @@ and incorporating various pull requests. | |||
| 34 | 34 | ||
| 35 | 35 | + Support "header" option with ODS files | |
| 36 | 36 | ||
| 37 | + + Show a warning when calling getVertexCount() on GROUP or PRIMITIVE shapes | ||
| 38 | + https://github.com/processing/processing/issues/2873 | ||
| 39 | + https://github.com/processing/processing-docs/issues/167 | ||
| 40 | + | ||
| 37 | 41 | ||
| 38 | 42 | [ bug fixes ] | |
| 39 | 43 | ||
@@ -152,6 +156,10 @@ and incorporating various pull requests. | |||
| 152 | 156 | https://github.com/processing/processing/issues/2576 | |
| 153 | 157 | https://github.com/processing/processing/pull/2922 | |
| 154 | 158 | ||
| 159 | + + 'return' keyword not treated as such when followed by a bracket | ||
| 160 | + https://github.com/processing/processing/issues/2099 | ||
| 161 | + https://github.com/processing/processing/pull/2958 | ||
| 162 | + | ||
| 155 | 163 | ||
| 156 | 164 | . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | |
| 157 | 165 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -513,7 +513,7 @@ static protected PShape createShapeImpl(PGraphicsJava2D pg, int type) { | |||
| 513 | 513 | } else if (type == PShape.GEOMETRY) { | |
| 514 | 514 | shape = new PShape(pg, PShape.GEOMETRY); | |
| 515 | 515 | } | |
| 516 | - shape.is3D(false); | ||
| 516 | + shape.set3D(false); | ||
| 517 | 517 | return shape; | |
| 518 | 518 | } | |
| 519 | 519 | ||
@@ -584,7 +584,7 @@ static protected PShape createShapeImpl(PGraphicsJava2D pg, | |||
| 584 | 584 | shape.setParams(p); | |
| 585 | 585 | } | |
| 586 | 586 | ||
| 587 | - shape.is3D(false); | ||
| 587 | + shape.set3D(false); | ||
| 588 | 588 | return shape; | |
| 589 | 589 | } | |
| 590 | 590 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -112,6 +112,9 @@ public class PShape implements PConstants { | |||
| 112 | 112 | public static final String NO_SUCH_VERTEX_ERROR = | |
| 113 | 113 | "%1$s vertex index does not exist"; | |
| 114 | 114 | ||
| 115 | + static public final String NO_VERTICES_ERROR = | ||
| 116 | + "getVertexCount() only works with PATH or GEOMETRY shapes"; | ||
| 117 | + | ||
| 115 | 118 | // boundary box of this shape | |
| 116 | 119 | //protected float x; | |
| 117 | 120 | //protected float y; | |
@@ -539,7 +542,7 @@ public boolean is3D() { | |||
| 539 | 542 | } | |
| 540 | 543 | ||
| 541 | 544 | ||
| 542 | - public void is3D(boolean val) { | ||
| 545 | + public void set3D(boolean val) { | ||
| 543 | 546 | is3D = val; | |
| 544 | 547 | } | |
| 545 | 548 | ||
@@ -2051,6 +2054,9 @@ protected void setPath(int vcount, float[][] verts, int ccount, int[] codes) { | |||
| 2051 | 2054 | * @see PShape#setVertex(int, float, float) | |
| 2052 | 2055 | */ | |
| 2053 | 2056 | public int getVertexCount() { | |
| 2057 | + if (family == GROUP || family == PRIMITIVE) { | ||
| 2058 | + PGraphics.showWarning(NO_VERTICES_ERROR); | ||
| 2059 | + } | ||
| 2054 | 2060 | return vertexCount; | |
| 2055 | 2061 | } | |
| 2056 | 2062 | ||
@@ -2100,6 +2106,7 @@ public float getVertexZ(int index) { | |||
| 2100 | 2106 | return vertices[index][Z]; | |
| 2101 | 2107 | } | |
| 2102 | 2108 | ||
| 2109 | + | ||
| 2103 | 2110 | /** | |
| 2104 | 2111 | * @webref pshape:method | |
| 2105 | 2112 | * @brief Sets the vertex at the index position | |
@@ -2119,6 +2126,7 @@ public void setVertex(int index, float x, float y) { | |||
| 2119 | 2126 | vertices[index][Y] = y; | |
| 2120 | 2127 | } | |
| 2121 | 2128 | ||
| 2129 | + | ||
| 2122 | 2130 | /** | |
| 2123 | 2131 | * @param z the z value for the vertex | |
| 2124 | 2132 | */ | |
@@ -2133,6 +2141,7 @@ public void setVertex(int index, float x, float y, float z) { | |||
| 2133 | 2141 | vertices[index][Z] = z; | |
| 2134 | 2142 | } | |
| 2135 | 2143 | ||
| 2144 | + | ||
| 2136 | 2145 | /** | |
| 2137 | 2146 | * @param vec the PVector to define the x, y, z coordinates | |
| 2138 | 2147 | */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -308,7 +308,7 @@ static protected PShapeOpenGL createShapeImpl(PGraphicsOpenGL pg, int type) { | |||
| 308 | 308 | } else if (type == PShape.GEOMETRY) { | |
| 309 | 309 | shape = new PShapeOpenGL(pg, PShape.GEOMETRY); | |
| 310 | 310 | } | |
| 311 | - shape.is3D(false); | ||
| 311 | + shape.set3D(false); | ||
| 312 | 312 | return shape; | |
| 313 | 313 | } | |
| 314 | 314 | ||
@@ -379,7 +379,7 @@ static protected PShapeOpenGL createShapeImpl(PGraphicsOpenGL pg, | |||
| 379 | 379 | shape.setParams(p); | |
| 380 | 380 | } | |
| 381 | 381 | ||
| 382 | - shape.is3D(false); | ||
| 382 | + shape.set3D(false); | ||
| 383 | 383 | return shape; | |
| 384 | 384 | } | |
| 385 | 385 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -191,7 +191,7 @@ static protected PShapeOpenGL createShapeImpl(PGraphicsOpenGL pg, int type) { | |||
| 191 | 191 | } else if (type == PShape.GEOMETRY) { | |
| 192 | 192 | shape = new PShapeOpenGL(pg, PShape.GEOMETRY); | |
| 193 | 193 | } | |
| 194 | - shape.is3D(true); | ||
| 194 | + shape.set3D(true); | ||
| 195 | 195 | return shape; | |
| 196 | 196 | } | |
| 197 | 197 | ||
@@ -272,7 +272,7 @@ static protected PShapeOpenGL createShapeImpl(PGraphicsOpenGL pg, | |||
| 272 | 272 | shape.setParams(p); | |
| 273 | 273 | } | |
| 274 | 274 | ||
| 275 | - shape.is3D(true); | ||
| 275 | + shape.set3D(true); | ||
| 276 | 276 | return shape; | |
| 277 | 277 | } | |
| 278 | 278 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,10 @@ | |||
| 1 | 1 | 0232 core (3.0a5) | |
| 2 | 2 | X detect CMYK JPEG images and return null | |
| 3 | 3 | X https://community.oracle.com/thread/1272045?start=0&tstart=0 | |
| 4 | + X show a warning when calling getVertexCount() on GROUP or PRIMITIVE shapes | ||
| 5 | + X https://github.com/processing/processing/issues/2873 | ||
| 6 | + X https://github.com/processing/processing-docs/issues/167 | ||
| 7 | + X replace is3D(boolean) with set3D() | ||
| 4 | 8 | ||
| 5 | 9 | data | |
| 6 | 10 | X fix XML.getString() with a default when no attrs are present at all | |
| Back | FazBrowse Home | New Git URL |
0 commit comments