java2dx by
jTEM

de.jtem.java2dx.numerical
Class PolygonSubdivider

java.lang.Object
  extended by de.jtem.java2dx.numerical.PolygonSubdivider

public class PolygonSubdivider
extends Object

For linear subdivision the threshhold length is the maximal edgelength allowed. For smooth subdivision the threshold length means that an edge e is subdivided if one of its endpoints has a distance to a neighboring edge of e that exceeds the threshhold length.


Field Summary
static int BISECTING_CIRCULAR
           
static int CIRCULAR
           
static int CUBIC
           
static int LINEAR
           
static int PARAMETRIZED_CUBIC
           
 
Constructor Summary
PolygonSubdivider()
           
 
Method Summary
 double getMaximalCurvatureLength()
           
 double getMaximalEdgeLength()
           
 int getSubdivisionMethod()
           
 boolean isClosed()
           
 void setClosed(boolean b)
           
 void setMaximalCurvatureLength(double l)
           
 void setMaximalEdgeLength(double l)
           
 void setSubdivisionMethod(int subdivisionMethod)
           
 double[][] subdivide(double[][] p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BISECTING_CIRCULAR

public static final int BISECTING_CIRCULAR
See Also:
Constant Field Values

CIRCULAR

public static final int CIRCULAR
See Also:
Constant Field Values

CUBIC

public static final int CUBIC
See Also:
Constant Field Values

LINEAR

public static final int LINEAR
See Also:
Constant Field Values

PARAMETRIZED_CUBIC

public static final int PARAMETRIZED_CUBIC
See Also:
Constant Field Values
Constructor Detail

PolygonSubdivider

public PolygonSubdivider()
Method Detail

getMaximalCurvatureLength

public double getMaximalCurvatureLength()
Returns:
Returns the maximal curvature length.

getMaximalEdgeLength

public double getMaximalEdgeLength()
Returns:
Returns the maximal curvature length.

getSubdivisionMethod

public int getSubdivisionMethod()

isClosed

public boolean isClosed()

setClosed

public void setClosed(boolean b)

setMaximalCurvatureLength

public void setMaximalCurvatureLength(double l)
Parameters:
l - The maximal curvature length to set.

setMaximalEdgeLength

public void setMaximalEdgeLength(double l)
Parameters:
l - The maximal curvature length to set.

setSubdivisionMethod

public void setSubdivisionMethod(int subdivisionMethod)

subdivide

public double[][] subdivide(double[][] p)

java2dx by
jTEM

jTEM