1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| /*
| * 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;
| }
|
| }
|
|