Class MeshGridGeometry

java.lang.Object
repast.simphony.visualization.visualization3D.MeshGridGeometry
All Implemented Interfaces:
DataGeometry

public class MeshGridGeometry extends Object implements DataGeometry
This uses a terrain drawing algorithm described by Mike Jacobs in JDJ "When Mars is Too Big to Download",

http://java.sys-con.com/read/46231.htm

It departs from that slightly though. The algorithm calculates terrain cooridinates / colors using the four corners of a row column. This means that the final column / row doesn't align with our grids because the values of those row / columns are actually displayed as part of the preceeding row column. Consequently we add a final "fake" column and and "fake" row that just duplicates the of the previous row / column.

Version:
$Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
Author:
Nick Collier
  • Constructor Details

    • MeshGridGeometry

      public MeshGridGeometry(int xDim, int zDim, int xOffset, int zOffset)
  • Method Details