org.osm2world.core.terrain.data
Class GenericTerrainPatch

Object
  extended by TerrainPatch
      extended by GenericTerrainPatch
All Implemented Interfaces:
Renderable, RenderableToAllTargets

public class GenericTerrainPatch
extends TerrainPatch

the "normal" TerrainPatch implementation. Has 2D outer polygons and holes, is triangulated, and elevation data is added to the resulting triangles.


Field Summary
 
Fields inherited from class TerrainPatch
triangulation
 
Constructor Summary
GenericTerrainPatch(PolygonWithHolesXZ polygon, Collection<VectorXZ> points, TemporaryElevationStorage eleStorage)
           
 
Method Summary
 void build()
          Required preparation for rendering.
 Collection<VectorXZ> getPoints()
           
 PolygonWithHolesXZ getPolygon()
           
 
Methods inherited from class TerrainPatch
getTriangulation, renderTo
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericTerrainPatch

public GenericTerrainPatch(PolygonWithHolesXZ polygon,
                           Collection<VectorXZ> points,
                           TemporaryElevationStorage eleStorage)
Method Detail

getPolygon

public PolygonWithHolesXZ getPolygon()

getPoints

public Collection<VectorXZ> getPoints()

build

public void build()
Description copied from class: TerrainPatch
Required preparation for rendering. Usually deals with triangulating the patch and restoring the polygons' third dimension afterwards. Call this method exactly once for each patch!

Specified by:
build in class TerrainPatch