.. | .. |
---|
13 | 13 | this(false); |
---|
14 | 14 | |
---|
15 | 15 | radius = 0.05f; |
---|
16 | | - uDivs = 7; |
---|
17 | | - vDivs = 6; |
---|
| 16 | + uDivs = 11; // 7; |
---|
| 17 | + vDivs = 4; // 6; |
---|
18 | 18 | |
---|
19 | 19 | center = new cVector(); |
---|
20 | 20 | center.set(x, y, z); |
---|
.. | .. |
---|
44 | 44 | inPnt = new cVector(); |
---|
45 | 45 | name = "Sphere"; |
---|
46 | 46 | //uDivs = vDivs = 16; |
---|
47 | | - uDivs = 8; // 19; |
---|
48 | | - vDivs = 8; // 18; |
---|
| 47 | + uDivs = 12; // 8; // 19; |
---|
| 48 | + vDivs = 6; // 8; // 18; |
---|
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(); |
---|
.. | .. |
---|
95 | 95 | return e; |
---|
96 | 96 | } |
---|
97 | 97 | |
---|
98 | | - protected void deepCopySelf(Object3D other) |
---|
| 98 | + protected void deepCopyNode(Object3D other) |
---|
99 | 99 | { |
---|
100 | | - super.deepCopySelf(other); |
---|
| 100 | + super.deepCopyNode(other); |
---|
101 | 101 | Sphere e = (Sphere) other; |
---|
102 | 102 | if (center != null) |
---|
103 | 103 | { |
---|
.. | .. |
---|
121 | 121 | buffer.append("}\n"); |
---|
122 | 122 | } |
---|
123 | 123 | |
---|
| 124 | + double uStretch() |
---|
| 125 | + { |
---|
| 126 | + return 2; |
---|
| 127 | + } |
---|
| 128 | + |
---|
| 129 | + double vFlip(double v) |
---|
| 130 | + { |
---|
| 131 | + return 1-v; |
---|
| 132 | + } |
---|
| 133 | + |
---|
124 | 134 | Vertex biparamFunction(double u, double v) |
---|
125 | 135 | { |
---|
126 | 136 | double uAng = LA.toRadians(u * 360); |
---|
.. | .. |
---|
137 | 147 | LA.vecCopy(temp.norm, temp/*.pos*/); |
---|
138 | 148 | LA.vecNormalize(temp.norm); |
---|
139 | 149 | |
---|
| 150 | + temp.y += radius; |
---|
| 151 | + |
---|
140 | 152 | return temp; |
---|
141 | 153 | } |
---|
142 | 154 | |
---|