Added PShape3D.setVertex(int i, float[] p)

This commit is contained in:
codeanticode
2010-06-26 10:11:15 +00:00
parent 58b38feda7
commit c7dd7adfad

View File

@@ -424,6 +424,11 @@ public class PShape3D extends PShape implements PConstants {
}
public void setVertex(int idx, float[] p) {
setVertex(idx, p[0], p[1], p[2]);
}
public void setVertex(float[] data) {
if (updateElement != VERTICES) {
throw new RuntimeException("PShape3D: updadate mode is not set to VERTICES");