|
| WB_PolygonTriangulatorJTS () |
|
WB_Triangulation2D | triangulatePolygon2D (final WB_Polygon polygon, final boolean optimize) |
|
WB_Triangulation2DWithPoints | triangulatePolygon2D (final List<?extends WB_Coord > outerPolygon, final List<?extends WB_Coord >[] innerPolygons, final boolean optimize, final WB_Map2D context) |
|
WB_Triangulation2DWithPoints | triangulatePolygon2D (final int[] polygon, final WB_Coord[] points, final boolean optimize, final WB_Map2D context) |
|
WB_Triangulation2D | triangulatePolygon2D (final int[] polygon, final List<?extends WB_Coord > points, final boolean optimize, final WB_Map2D context) |
|
int[] | triangulateFace (final HE_Face face, final boolean optimize) |
|
int[] | triangulateSimplePolygon (final WB_Polygon polygon, final boolean optimize) |
|
wblut.geom.WB_PolygonTriangulatorJTS.WB_PolygonTriangulatorJTS |
( |
| ) |
|
void wblut.geom.WB_PolygonTriangulatorJTS.createShell |
( |
final Polygon |
inputPolygon | ) |
|
|
protected |
void wblut.geom.WB_PolygonTriangulatorJTS.doImprove |
( |
final List< IndexedTriangle > |
earList | ) |
|
|
private |
void wblut.geom.WB_PolygonTriangulatorJTS.doJoinHole |
( |
final int |
shellVertexIndex, |
|
|
final Coordinate[] |
holeCoords, |
|
|
final int |
holeVertexIndex |
|
) |
| |
|
private |
Helper method for joinHoleToShell. Insert the hole coordinates into the shell coordinate list.
- Parameters
-
shellVertexIndex | insertion point in the shell coordinate list |
holeCoords | array of hole coordinates |
holeVertexIndex | attachment point of hole |
static int [] wblut.geom.WB_PolygonTriangulatorJTS.extractEdgesTri |
( |
final int[] |
ears | ) |
|
|
staticprivate |
static long wblut.geom.WB_PolygonTriangulatorJTS.getIndex |
( |
final int |
i, |
|
|
final int |
j, |
|
|
final int |
f |
|
) |
| |
|
staticprivate |
static int wblut.geom.WB_PolygonTriangulatorJTS.getLowestVertex |
( |
final Geometry |
geom | ) |
|
|
staticprivate |
Return the index of the lowest vertex.
- Parameters
-
- Returns
- index of the first vertex found at lowest point of the geometry
References wblut.math.WB_Epsilon.EPSILON.
static List<Geometry> wblut.geom.WB_PolygonTriangulatorJTS.getOrderedHoles |
( |
final Polygon |
poly | ) |
|
|
staticprivate |
Returns a list of holes in the input polygon (if any) ordered by y coordinate with ties broken using x coordinate.
- Parameters
-
- Returns
- a list of Geometry objects representing the ordered holes (may be empty)
boolean wblut.geom.WB_PolygonTriangulatorJTS.isValidEdge |
( |
final int |
index0, |
|
|
final int |
index1 |
|
) |
| |
|
private |
Check if a candidate edge between two vertices passes through any other available vertices.
- Parameters
-
index0 | first vertex |
index1 | second vertex |
- Returns
- true if the edge does not pass through any other available vertices; false otherwise
References wblut.geom.WB_PolygonTriangulatorJTS.nextShellCoord().
void wblut.geom.WB_PolygonTriangulatorJTS.joinHoleToShell |
( |
final Polygon |
inputPolygon, |
|
|
final Geometry |
hole |
|
) |
| |
|
private |
static void wblut.geom.WB_PolygonTriangulatorJTS.main |
( |
final String[] |
args | ) |
|
|
static |
int wblut.geom.WB_PolygonTriangulatorJTS.nextShellCoord |
( |
final int |
pos | ) |
|
|
private |
Get the index of the next available shell coordinate starting from the given candidate position.
- Parameters
-
- Returns
- index of the next available shell coordinate
int [] wblut.geom.WB_PolygonTriangulatorJTS.triangulate |
( |
final Polygon |
inputPolygon, |
|
|
final boolean |
improve |
|
) |
| |
|
private |
int [] wblut.geom.WB_PolygonTriangulatorJTS.triangulateFace |
( |
final HE_Face |
face, |
|
|
final boolean |
optimize |
|
) |
| |
References wblut.geom.WB_KDTreeInteger< T extends WB_Coord >.add(), wblut.hemesh.HE_Face.getFaceDegree(), wblut.hemesh.HE_Face.getFaceNormal(), wblut.hemesh.HE_Face.getHalfedge(), wblut.geom.WB_KDTreeInteger< T extends WB_Coord >.getNearestNeighbor(), wblut.hemesh.HE_Halfedge.getNextInFace(), wblut.hemesh.HE_Halfedge.getVertex(), wblut.geom.WB_PolygonTriangulatorJTS.triangulate(), wblut.geom.WB_KDTreeInteger< T extends WB_Coord >.WB_KDEntryInteger< T extends WB_Coord >.value, wblut.geom.WB_Coord.xd(), wblut.geom.WB_Swizzle.xd(), wblut.geom.WB_Swizzle.XY, wblut.geom.WB_Coord.yd(), wblut.geom.WB_Swizzle.yd(), wblut.geom.WB_Swizzle.YZ, wblut.geom.WB_Coord.zd(), and wblut.geom.WB_Swizzle.ZX.
WB_Triangulation2D wblut.geom.WB_PolygonTriangulatorJTS.triangulatePolygon2D |
( |
final int[] |
polygon, |
|
|
final List<?extends WB_Coord > |
points, |
|
|
final boolean |
optimize, |
|
|
final WB_Map2D |
context |
|
) |
| |
int [] wblut.geom.WB_PolygonTriangulatorJTS.triangulateSimplePolygon |
( |
final WB_Polygon |
polygon, |
|
|
final boolean |
optimize |
|
) |
| |
References wblut.geom.WB_KDTreeInteger< T extends WB_Coord >.add(), wblut.geom.WB_KDTreeInteger< T extends WB_Coord >.getNearestNeighbor(), wblut.geom.WB_Polygon.getNormal(), wblut.geom.WB_Polygon.getNumberOfShellPoints(), wblut.geom.WB_Polygon.getPoint(), wblut.geom.WB_PolygonTriangulatorJTS.triangulate(), wblut.geom.WB_KDTreeInteger< T extends WB_Coord >.WB_KDEntryInteger< T extends WB_Coord >.value, wblut.geom.WB_Coord.xd(), wblut.geom.WB_Swizzle.xd(), wblut.geom.WB_Swizzle.XY, wblut.geom.WB_Coord.yd(), wblut.geom.WB_Swizzle.yd(), wblut.geom.WB_Swizzle.YZ, wblut.geom.WB_Coord.zd(), and wblut.geom.WB_Swizzle.ZX.
boolean [] wblut.geom.WB_PolygonTriangulatorJTS.shellCoordAvailable |
|
private |
List<Coordinate> wblut.geom.WB_PolygonTriangulatorJTS.shellCoords |
|
private |
The documentation for this class was generated from the following file: