com.caffeineowl.graphics.bezier.flatnessalgos
Class SimpleConvexHullSubdivCriterion

java.lang.Object
  extended by com.caffeineowl.graphics.bezier.flatnessalgos.SimpleConvexHullFlatness
      extended by com.caffeineowl.graphics.bezier.flatnessalgos.SimpleConvexHullSubdivCriterion
All Implemented Interfaces:
CubicFlatnessAlgorithm, CubicSubdivisionCriterion, QuadFlatnessAlgorithm, QuadSubdivisionCriterion

public class SimpleConvexHullSubdivCriterion
extends SimpleConvexHullFlatness
implements CubicSubdivisionCriterion, QuadSubdivisionCriterion

A sundivion criterion based on the flatness returned by the SimpleConvexHullFlatness.

Author:
Adrian Colomitchi (acolomitchi(monkey_tail)gmail.com)

Field Summary
protected  double sqTol
           
 
Constructor Summary
SimpleConvexHullSubdivCriterion()
           
SimpleConvexHullSubdivCriterion(double tolerance)
           
 
Method Summary
 boolean shouldSplit(java.awt.geom.CubicCurve2D curve)
           
 boolean shouldSplit(java.awt.geom.QuadCurve2D curve)
           
 
Methods inherited from class com.caffeineowl.graphics.bezier.flatnessalgos.SimpleConvexHullFlatness
getFlatness, getFlatness, getSquaredFlatness, getSquaredFlatness, isDegenerationRobust, isSquaredFlatenessPreferred
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sqTol

protected double sqTol
Constructor Detail

SimpleConvexHullSubdivCriterion

public SimpleConvexHullSubdivCriterion()

SimpleConvexHullSubdivCriterion

public SimpleConvexHullSubdivCriterion(double tolerance)
Method Detail

shouldSplit

public final boolean shouldSplit(java.awt.geom.CubicCurve2D curve)
Specified by:
shouldSplit in interface CubicSubdivisionCriterion

shouldSplit

public final boolean shouldSplit(java.awt.geom.QuadCurve2D curve)
Specified by:
shouldSplit in interface QuadSubdivisionCriterion