|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.Delaunay
public abstract class Delaunay
Delaunay represents an abstract class for calculating an N-dimensional Delaunay triangulation, that can be extended to allow for various triangulation methods.
Field Summary | |
---|---|
int[][] |
Edges
|
int |
NumEdges
|
int[][] |
Tri
|
int[][] |
Vertices
|
int[][] |
Walk
|
Constructor Summary | |
---|---|
Delaunay()
The abstract constructor initializes the class's data arrays. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
static Delaunay |
factory(float[][] samples,
boolean exact)
The factory class method heuristically decides which extension to the Delaunay abstract class to use in order to construct the fastest triangulation, and calls that extension, returning the finished triangulation. |
void |
finish_triang(float[][] samples)
finish_triang calculates a triangulation's helper arrays, Walk and Edges, if the triangulation algorithm hasn't calculated them already. |
boolean |
getNonConvex()
|
void |
improve(float[][] samples,
int pass)
improve uses edge-flipping to bring the current triangulation closer to the true Delaunay triangulation. |
static float[][] |
perturb(float[][] samples,
float epsilon,
boolean copy)
perturb alters the values of the samples by up to epsilon in either direction, to eliminate triangulation problems such as co-linear points; copy specifies whether perturb should modify the actual samples or a copy of them. |
java.lang.String |
sampleString(float[][] samples)
|
static float[][] |
scale(float[][] samples,
float mult,
boolean copy)
scale alters the values of the samples by multiplying them by the mult factor; copy specifies whether scale should modify the actual samples or a copy of them. |
void |
setNonConvex()
|
boolean |
test(float[][] samples)
test checks a triangulation in various ways to make sure it is constructed correctly; test returns false if there are any problems with the triangulation. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int[][] Tri
public int[][] Vertices
public int[][] Walk
public int[][] Edges
public int NumEdges
Constructor Detail |
---|
public Delaunay() throws VisADException
VisADException
Method Detail |
---|
public void setNonConvex()
public boolean getNonConvex()
public java.lang.Object clone()
clone
in class java.lang.Object
public static Delaunay factory(float[][] samples, boolean exact) throws VisADException
VisADException
public static float[][] scale(float[][] samples, float mult, boolean copy)
public static float[][] perturb(float[][] samples, float epsilon, boolean copy)
public boolean test(float[][] samples)
public void improve(float[][] samples, int pass) throws VisADException
VisADException
public void finish_triang(float[][] samples) throws VisADException
VisADException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String sampleString(float[][] samples)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |