org.deegree.rendering.r3d.multiresolution.crit
Class MaxError
java.lang.Object
org.deegree.rendering.r3d.multiresolution.crit.MaxError
- All Implemented Interfaces:
- LODCriterion
public class MaxError
- extends Object
- implements LODCriterion
LODCriterion that requests the smallest LOD in a MultiresolutionMesh with an approximation error that
does not exceed a given bound.
- Version:
- $Revision: $, $Date: $
- Author:
- Markus Schneider, last edited by: $Author: schneider $
|
Constructor Summary |
MaxError(float maxTolerableError)
Creates a new MaxError instance. |
|
Method Summary |
boolean |
needsRefinement(Arc arc)
Returns true, iff the geometric error associated with the arc is greater than the maximum tolerable error. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxError
public MaxError(float maxTolerableError)
- Creates a new
MaxError instance.
- Parameters:
maxTolerableError - the maximum tolerable error for the LOD (in world units)
needsRefinement
public boolean needsRefinement(Arc arc)
- Returns true, iff the geometric error associated with the arc is greater than the maximum tolerable error.
- Specified by:
needsRefinement in interface LODCriterion
- Parameters:
arc - arc to be checked
- Returns:
- true, iff the arc's geometric error is greater than the maximum tolerable error
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>