added setVertex(int, PVector) to PShape

This commit is contained in:
codeanticode
2012-07-24 20:31:39 +00:00
parent c9c7dbc4db
commit 70db6fc1d5
2 changed files with 15 additions and 0 deletions

View File

@@ -2007,6 +2007,14 @@ public class PShapeOpenGL extends PShape {
}
public void setVertex(int index, PVector vec) {
inGeo.vertices[3 * index + 0] = vec.x;
inGeo.vertices[3 * index + 1] = vec.y;
inGeo.vertices[3 * index + 2] = vec.z;
markForTessellation();
}
public PVector getNormal(int index, PVector vec) {
if (vec == null) {
vec = new PVector();