| Package | Description |
|---|---|
| com.caffeineowl.graphics.bezier.flatnessalgos |
| Modifier and Type | Class and Description |
|---|---|
class |
ConvexHullFlatnessAlgo |
class |
ConvexHullSubdivCriterion
Will require the subdivision of a
cubic
or a quadratic curve any time
the cubic's squared flatness
(or the quad's ConvexHullFlatnessAlgo.getSquaredFlatness(QuadCurve2D) squared flatness})
is greater than a provided tolerance. |
class |
LineDefectFlatnessAlgo
The algorithm computes the defected as the distance between
the actual location control point(s) and the location of
the control point(s) of a totally degenerated Bezier segment:
for a quadratic Bezier, that's the mid point of the segment
connecting the anchor points,
for a totally degenerated cubic, the locations of the
control points are at
1/3 and 2/3
positions of the segment that connects the anchor points. |
class |
LineDefectSubdivCriterion
|
class |
SimpleConvexHullFlatness
Computes the flatness based on the maximum distance between any of the control
points of a cubic Bezier (
SimpleConvexHullFlatness.getFlatness(CubicCurve2D) or quadratic
Bezier (SimpleConvexHullFlatness.getFlatness(QuadCurve2D) and the line defined by the
anchor points of the Bezier curve. |
class |
SimpleConvexHullSubdivCriterion
A sundivion criterion based on the flatness returned by the
SimpleConvexHullFlatness. |
| Modifier and Type | Field and Description |
|---|---|
protected QuadFlatnessAlgorithm |
GenericQuadSubdivCriterion.flatnessAlgo
The flatness algorithm.
|
| Constructor and Description |
|---|
GenericQuadSubdivCriterion(QuadFlatnessAlgorithm algo)
Initialises
a new instance the provided flatness algo
and a tolerance of 1.0e-5. |
GenericQuadSubdivCriterion(QuadFlatnessAlgorithm algo,
double tolerance)
Initialises
using the provided parameters. |
Copyright © 2016. All rights reserved.