org.osm2world.core.terrain.data
Class GenericTerrainPatch

Object
  extended by TerrainPatch
      extended by GenericTerrainPatch
All Implemented Interfaces:
RenderableToPOVRay, 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(SimplePolygonXZ outerPoly, Collection<SimplePolygonXZ> holes, TemporaryElevationStorage eleStorage)
           
 
Method Summary
 void build()
          Required preparation for rendering.
 Collection<SimplePolygonXZ> getHoles()
           
 SimplePolygonXZ getOuterPolygon()
           
 
Methods inherited from class TerrainPatch
renderTo, renderTo
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericTerrainPatch

public GenericTerrainPatch(SimplePolygonXZ outerPoly,
                           Collection<SimplePolygonXZ> holes,
                           TemporaryElevationStorage eleStorage)
Method Detail

getOuterPolygon

public SimplePolygonXZ getOuterPolygon()

getHoles

public Collection<SimplePolygonXZ> getHoles()

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