class EarClip
extends java.lang.Object
| Constructor and Description |
|---|
EarClip() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
classifyAngles(Triangulator triRef,
int ind)
Classifies all the internal angles of the loop referenced by ind.
|
(package private) static void |
classifyEars(Triangulator triRef,
int ind) |
(package private) static boolean |
clipEar(Triangulator triRef,
boolean[] done)
This is the main function that drives the ear-clipping.
|
(package private) static boolean |
isEar(Triangulator triRef,
int ind2,
int[] ind1,
int[] ind3,
double[] ratio)
This function checks whether a diagonal is valid, that is, whether it is
locally within the polygon, and whether it does not intersect any other
segment of the polygon.
|
static void classifyAngles(Triangulator triRef, int ind)
static void classifyEars(Triangulator triRef, int ind)
static boolean isEar(Triangulator triRef, int ind2, int[] ind1, int[] ind3, double[] ratio)
static boolean clipEar(Triangulator triRef, boolean[] done)
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.