Sphere.java
.. .. @@ -49,7 +49,7 @@ 49 49 minUDivs = 3; 50 50 minVDivs = 2; 51 51 //center = new cVector(); 52 - radius = 1;52 + radius = 0.5;53 53 if (recalc) 54 54 { 55 55 retile(); .. .. @@ -121,6 +121,11 @@ 121 121 buffer.append("}\n"); 122 122 } 123 123 124 + double uStretch()125 + {126 + return 2;127 + }128 +124 129 Vertex biparamFunction(double u, double v) 125 130 { 126 131 double uAng = LA.toRadians(u * 360); .. .. @@ -137,6 +142,8 @@ 137 142 LA.vecCopy(temp.norm, temp/*.pos*/); 138 143 LA.vecNormalize(temp.norm); 139 144 145 + temp.y += radius;146 +140 147 return temp; 141 148 } 142 149