org.deegree.rendering.r3d.opengl.tesselation
Class Tesselator

java.lang.Object
  extended by org.deegree.rendering.r3d.opengl.tesselation.Tesselator

public class Tesselator
extends Object

The Tesselator class is a GLUtessellator utility wrapper. Its main purpose is the creation of a RenderableQualityModel out of a GeometryQualityModel by triangulating (tesselating) all it's SimpleAccessGeometry.

Version:
$Revision: 30126 $, $Date: 2011-03-22 11:11:00 +0100 (Tue, 22 Mar 2011) $
Author:
Rutger Bezema, last edited by: $Author: aschmitz $

Constructor Summary
Tesselator(boolean useDirectBuffers)
          Create a tesselator which triangulates all SimpleAccessGeometry of a GeometryQualityModel.
 
Method Summary
 RenderableQualityModel createRenderableQM(String objectID, GeometryQualityModel originalObject)
          Create a renderable quality model from the given 'original' geometry model, by tesselating (triangulating) its polygons.
 RenderableGeometry tesselateGeometry(SimpleAccessGeometry originalGeometry)
          Create a renderable geometry from the given SimpleAccessGeometry by tesselating it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tesselator

public Tesselator(boolean useDirectBuffers)
Create a tesselator which triangulates all SimpleAccessGeometry of a GeometryQualityModel.

Parameters:
useDirectBuffers - to use direct buffers instead of heap buffers.
Method Detail

createRenderableQM

public RenderableQualityModel createRenderableQM(String objectID,
                                                 GeometryQualityModel originalObject)
Create a renderable quality model from the given 'original' geometry model, by tesselating (triangulating) its polygons.

Parameters:
objectID - identifying the given quality model, if an error occurs. May be null
originalObject - containing polygons
Returns:
the renderable object.

tesselateGeometry

public final RenderableGeometry tesselateGeometry(SimpleAccessGeometry originalGeometry)
Create a renderable geometry from the given SimpleAccessGeometry by tesselating it.

Parameters:
originalGeometry - may not be null.
Returns:
the RenderableGeometry or null if the given geometry could not be triangulated.


Copyright © 2011. All Rights Reserved.