jvx.geom
Class PwRefinePolygon
java.lang.Object
|
+--jvx.geom.PwRefinePolygon
- public class PwRefinePolygon
- extends java.lang.Object
Class to refine or coarsen a PgPolygon
- Version:
- 28.05.01, 1.00 created (ur)
- Author:
- Ulrich Reitebuch
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PwRefinePolygon
public PwRefinePolygon()
refineDLG
public static void refineDLG(PgPolygon poly)
- Refine a PgPolygon global by DLG scheme.
Afterwards the polygon will have twice as much vertices, the vertices v(i)
at even indices are the original vertices of the polygon, the vertices at
odd indices are blended from the next two vertices in both directions by
1/16(-v(i-1) + 9v(i) + 9v(i+1) - v(i+2)).
coarsenInterpolation
public static void coarsenInterpolation(PgPolygon poly)
- Coarsen a PgPolygon by removing every second vertex.
This is the reverse algorithm for interpolating refinement algorithms.
refineChaikin
public static void refineChaikin(PgPolygon poly)
- Refine a PgPolygon global by Chaikin's algorithm.
On each edge of the polygon two vertices of the refined polygon
will be computed at 1/4 and 3/4 length.
coarsenChaikin
public static void coarsenChaikin(PgPolygon poly)
- Coarsen a PgPolygon global by a reversed Chaikin algorithm.
Each vertex of the coarsened polygon gets blended from two of the
extrapolated ancestor vertices of the edges v(i-2) to v(i-1)
and v(i) to v(i+1).
getDialog
public static PsDialog getDialog(PgPolygon poly)
- Pop up a new dialog window to steer refinement and coarsening.
The software JavaView® is copyright protected. All Rights Reserved.