|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjv.geom.PgUtil
Utility programs for geometry classes which operate on primitive data.
| Constructor Summary | |
PgUtil()
|
|
| Method Summary | |
static PiVector[] |
triangulate(PdVector[] polygon)
Deprecated. use triangulate(PdVector[], int) |
static PiVector[] |
triangulate(PdVector[] polygon,
int numVertices)
Triangulate a given simple closed, nearly planar polygon. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PgUtil()
| Method Detail |
public static PiVector[] triangulate(PdVector[] polygon,
int numVertices)
Method successively removes the vertex with the smallest interior angle. Method can handle non-convex polygons.
Polygon may have vertices of arbitrary ambient dimension larger than one. First and last vertex are implicitly connected to obtain a closed polygon.
polygon - Array with vertices described a closed polygon in R^n.numVertices - Number of used entries in vertex array.public static PiVector[] triangulate(PdVector[] polygon)
Polygon may have vertices of arbitrary ambient dimension larger than one. First and last vertex are implicitly connected to obtain a closed polygon.
polygon - Array with vertices described a closed polygon in R^n.
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||