public class TopPolygonNode extends Object
Constructor and Description |
---|
TopPolygonNode() |
Modifier and Type | Method and Description |
---|---|
PolygonNode |
add_local_min(double x,
double y) |
int |
count_contours() |
Polygon |
getResult(Class<Polygon> polyClass) |
void |
merge_left(PolygonNode p,
PolygonNode q) |
void |
merge_right(PolygonNode p,
PolygonNode q) |
void |
print() |
public TopPolygonNode()
public PolygonNode add_local_min(double x, double y)
x
- y
- public void merge_left(PolygonNode p, PolygonNode q)
p
- q
- public void merge_right(PolygonNode p, PolygonNode q)
p
- q
- public int count_contours()
public Polygon getResult(Class<Polygon> polyClass)
polyClass
- public void print()