Normand Briere
2019-08-22 0c7b833be7d86598a6813cd1c6db0ca9e1b17966
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,16 @@
121121 buffer.append("}\n");
122122 }
123123
124
+ double uStretch()
125
+ {
126
+ return 2;
127
+ }
128
+
129
+ double vFlip(double v)
130
+ {
131
+ return 1-v;
132
+ }
133
+
124134 Vertex biparamFunction(double u, double v)
125135 {
126136 double uAng = LA.toRadians(u * 360);
....@@ -137,6 +147,8 @@
137147 LA.vecCopy(temp.norm, temp/*.pos*/);
138148 LA.vecNormalize(temp.norm);
139149
150
+ temp.y += radius;
151
+
140152 return temp;
141153 }
142154