aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph/curve
diff options
context:
space:
mode:
authorRami Santina <[email protected]>2011-05-10 14:29:12 +0300
committerRami Santina <[email protected]>2011-05-10 14:29:12 +0300
commit192631530503b8046abcfa9b2ca6760e3f39ae66 (patch)
treef19789a1407ae1a00cd9de1987f5a0529b647325 /src/jogl/classes/com/jogamp/graph/curve
parent1303328b476570d94e56c9d2fc061e3b09cf538a (diff)
Fix: glyph outline orientation with the removal of inversion
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/curve')
-rwxr-xr-xsrc/jogl/classes/com/jogamp/graph/curve/OutlineShape.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
index 11307d518..7f8e386a1 100755
--- a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
+++ b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
@@ -279,6 +279,19 @@ public class OutlineShape implements Comparable<OutlineShape> {
bbox.resize(lo.getBounds());
}
}
+
+ /** Adds a vertex to the last open outline in the shape.
+ * at {@code position}
+ * @param position indx at which the vertex will be added
+ * @param v the vertex to be added to the OutlineShape
+ */
+ public final void addVertex(int position, Vertex v){
+ final Outline lo = getLastOutline();
+ lo.addVertex(position, v);
+ if( 0 == ( dirtyBits & DIRTY_BOUNDS ) ) {
+ bbox.resize(lo.getBounds());
+ }
+ }
/** Add a 2D {@link Vertex} to the last outline by defining the coordniate attribute
* of the vertex. The 2D vertex will be represented as Z=0.