diff options
author | Sven Gothel <[email protected]> | 2011-05-22 06:52:59 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-05-22 06:52:59 +0200 |
commit | ced1a4c644483ad5bfd28ca2bb6a5ffc030b9f1d (patch) | |
tree | 26b5ec722eef1735898c18ce8289e25339f90af6 /src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java | |
parent | f48f1f68ed51fd83f0fa5282209b556eab39e23e (diff) | |
parent | 5ea211cde39be9669d1f2f289abbba460398f82e (diff) |
Merge remote-tracking branch 'remotes/rsantina/master'
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java')
-rwxr-xr-x | src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java index 20b4d61a1..c6165b6b3 100755 --- a/src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java +++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java @@ -60,14 +60,16 @@ public abstract class GLRegion extends Region { int numVertices = region.getNumVertices();
- for(OutlineShape outlineShape:outlineShapes){
+ for(int index=0; index<outlineShapes.length; index++) {
+ OutlineShape outlineShape = outlineShapes[index];
outlineShape.transformOutlines(OutlineShape.VerticesState.QUADRATIC_NURBS);
ArrayList<Triangle> triangles = outlineShape.triangulate();
region.addTriangles(triangles);
ArrayList<Vertex> vertices = outlineShape.getVertices();
- for(Vertex vert:vertices){
+ for(int pos=0; pos < vertices.size(); pos++){
+ Vertex vert = vertices.get(pos);
vert.setId(numVertices++);
}
region.addVertices(vertices);
|