org.deegree.geometry.linearization
Class SurfaceLinearizer
java.lang.Object
org.deegree.geometry.linearization.SurfaceLinearizer
public class SurfaceLinearizer
- extends Object
Provides methods for the linearization of planar surfaces, i.e. PolygonPatch
es and Polygon
s.
- Version:
- $Revision: 31641 $, $Date: 9 May 2008 13:09:29$
- Author:
- Markus Schneider, last edited by: $Author: elmasri$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SurfaceLinearizer
public SurfaceLinearizer(GeometryFactory geomFac)
- Parameters:
geomFac
-
linearize
public <T extends Surface> T linearize(T surface,
LinearizationCriterion crit)
- Returns a linearized version of the given
Surface
geometry, i.e. the patches only use linear interpolated
curves as boundaries.
NOTE: This method respects the semantic difference between Surface
and Polygon
geometries: if the
input is a Polygon
, a polygon geometry will be returned.
- Type Parameters:
T
- subtype of Surface- Parameters:
surface
- crit
-
- Returns:
- linearized version of the input curve
linearize
public PolygonPatch linearize(PolygonPatch patch,
LinearizationCriterion crit)
- Returns a linearized version (i.e. a
PolygonPatch
that only uses LinearRing
s as boundaries) of
the given PolygonPatch
.
- Parameters:
patch
- crit
- determines the interpolation quality / number of interpolation points
- Returns:
PolygonPatch
that only uses LinearRing
s as boundaries
Copyright © 2011. All Rights Reserved.