.. | .. |
---|
8 | 8 | { |
---|
9 | 9 | inPnt = new cVector(); |
---|
10 | 10 | name = "Torus"; |
---|
11 | | - uDivs = 35; // 64; |
---|
12 | | - vDivs = 19; // 24; |
---|
| 11 | + uDivs = 61; // 35; // 64; |
---|
| 12 | + vDivs = 21; // 19; // 24; |
---|
13 | 13 | minUDivs = 3; |
---|
14 | 14 | minVDivs = 3; |
---|
15 | 15 | retile(); |
---|
.. | .. |
---|
25 | 25 | return t; |
---|
26 | 26 | } |
---|
27 | 27 | |
---|
28 | | - protected void deepCopySelf(Object3D other) |
---|
| 28 | + protected void deepCopyNode(Object3D other) |
---|
29 | 29 | { |
---|
30 | | - super.deepCopySelf(other); |
---|
| 30 | + super.deepCopyNode(other); |
---|
31 | 31 | Torus t = (Torus)other; |
---|
32 | 32 | t.major = major; |
---|
33 | 33 | t.minor = minor; |
---|
.. | .. |
---|
56 | 56 | buffer.append("}\n"); |
---|
57 | 57 | } |
---|
58 | 58 | |
---|
| 59 | + double uStretch() |
---|
| 60 | + { |
---|
| 61 | + return 6; // Actually 6.28 (I think) |
---|
| 62 | + } |
---|
| 63 | + |
---|
59 | 64 | Vertex biparamFunction(double u, double v) |
---|
60 | 65 | { |
---|
61 | 66 | if (u == 1) |
---|
.. | .. |
---|
87 | 92 | //temp.pos = tPos; // useless new |
---|
88 | 93 | temp.norm = tNorm; |
---|
89 | 94 | LA.vecNormalize(temp.norm); |
---|
| 95 | + |
---|
| 96 | + temp.y += minor; |
---|
| 97 | + |
---|
90 | 98 | return temp; |
---|
91 | 99 | } |
---|
92 | 100 | |
---|