mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
added setVertex(int, PVector) to PShape
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user