de.jtem.java2dx.numerical
Class PolygonSubdivider
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
PolygonSubdivider
public PolygonSubdivider()
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)
jTEM