Normand Briere
2019-07-27 1af7d3700724834e40ad8636bc9a56cdc3b19b15
Grid.java
....@@ -4,6 +4,11 @@
44
55 Grid()
66 {
7
+ this(36, 36);
8
+ }
9
+
10
+ Grid(int u, int v)
11
+ {
712 super(false);
813 //this(true);
914 //}
....@@ -12,8 +17,8 @@
1217 //{
1318 inPnt = new cVector();
1419 name = "Grid";
15
- uDivs = 35;
16
- vDivs = 34;
20
+ uDivs = u;
21
+ vDivs = v;
1722 minUDivs = 1;
1823 minVDivs = 1;
1924 center = new cVector();
....@@ -59,7 +64,7 @@
5964
6065 Vertex biparamFunction(double u, double v)
6166 {
62
- Vertex temp = new Vertex((2*v-1)*radius*8, 0 /*-radius,*/, (2*u-1)*radius*8);
67
+ Vertex temp = new Vertex((2*v-1)*radius*4, 0 /*-radius,*/, (2*u-1)*radius*4);
6368 temp.norm = LA.newVector(0,1,0);
6469 return temp;
6570 }