org.deegree.tools.rendering.manager.buildings.generalisation
Class WorldObjectSimplifier
java.lang.Object
org.deegree.tools.rendering.manager.buildings.generalisation.WorldObjectSimplifier
public class WorldObjectSimplifier
- extends Object
This class simplifies a 3D-Object. Two different simplifications will be performed. The first one create a simplified
version of the original geometry by calculating and simplifying the convex hull of its two-dimensional projection.
The second one calculates a transformation matrix to move, rotated und stretch a box of size 1,1,1 located at 0,0,0
to the 3D envelope of an object.
- Author:
- Andreas Poth, last edited by: $Author: mschneider $
|
Method Summary |
void |
createSimplified3DObject(org.deegree.rendering.r3d.opengl.rendering.model.geometry.WorldRenderableObject wro,
int levelOfInterest,
int targetQualityLevel)
For this five steps will be performed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorldObjectSimplifier
public WorldObjectSimplifier()
- Instantiate the simplifier..
createSimplified3DObject
public void createSimplified3DObject(org.deegree.rendering.r3d.opengl.rendering.model.geometry.WorldRenderableObject wro,
int levelOfInterest,
int targetQualityLevel)
- For this five steps will be performed.
- 1. map all points to a planar horizontal surface
- 2. calculate convex hull of the points
- 3. simplify convex hull (using Douglas-Peucker algorithm)
- 4. extrude polygon represented by convex hull to height of the original geometry (first simplification
result)
- 5. calculate 3D bounding box (currently not supported)
- Parameters:
wro - to get the qualitylevel from.levelOfInterest - the simplifications should be created from.targetQualityLevel - to which the generalisation should be saved.
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>