/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author nbriere */ public class HeightField extends Grid { iHeightField heightField; HeightField(iHeightField hf) { heightField = hf; } Vertex biparamFunction(double u, double v) { Vertex temp = new Vertex((2*v-1)*radius*8, 0 /*-radius,*/, (2*u-1)*radius*8); temp.norm = LA.newVector(0,1,0); return temp; } }