Normand Briere
2019-08-12 b1d79b74514041a059b454a9f6fc3970773c0cb8
Sphere.java
....@@ -49,7 +49,7 @@
4949 minUDivs = 3;
5050 minVDivs = 2;
5151 //center = new cVector();
52
- radius = 1;
52
+ radius = 0.5;
5353 if (recalc)
5454 {
5555 retile();
....@@ -121,6 +121,11 @@
121121 buffer.append("}\n");
122122 }
123123
124
+ double uStretch()
125
+ {
126
+ return 2;
127
+ }
128
+
124129 Vertex biparamFunction(double u, double v)
125130 {
126131 double uAng = LA.toRadians(u * 360);
....@@ -137,6 +142,8 @@
137142 LA.vecCopy(temp.norm, temp/*.pos*/);
138143 LA.vecNormalize(temp.norm);
139144
145
+ temp.y += radius;
146
+
140147 return temp;
141148 }
142149