summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java10
1 files changed, 10 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 807d79abe..9b71865f6 100644
--- a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
+++ b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
@@ -236,10 +236,20 @@ public final class OutlineShape implements Comparable<OutlineShape> {
*/
public final Vertex.Factory<? extends Vertex> vertexFactory() { return vertexFactory; }
+ /** Returns the number of {@link Outline}s. */
public final int getOutlineCount() {
return outlines.size();
}
+ /** Returns the total {@link Outline#getVertexCount() vertex number} of all {@link Outline}s. */
+ public final int getOutlineVectexCount() {
+ int res = 0;
+ for(final Outline o : outlines) {
+ res += o.getVertexCount();
+ }
+ return res;
+ }
+
/**
* Compute the {@link Winding} of the {@link #getLastOutline()} using the {@link #area(ArrayList)} function over all of its vertices.
* @return {@link Winding#CCW} or {@link Winding#CW}