.. | .. |
---|
1 | 1 | class Superellipsoid extends Biparam /*Sphere*/ implements java.io.Serializable |
---|
2 | 2 | { |
---|
3 | | - |
---|
| 3 | + static final long serialVersionUID = -251688182693574378L; |
---|
| 4 | + |
---|
4 | 5 | Superellipsoid() |
---|
5 | 6 | { |
---|
6 | 7 | super(); // false); |
---|
.. | .. |
---|
29 | 30 | return s; |
---|
30 | 31 | } |
---|
31 | 32 | |
---|
32 | | - protected void deepCopySelf(Object3D other) |
---|
| 33 | + protected void deepCopyNode(Object3D other) |
---|
33 | 34 | { |
---|
34 | | - super.deepCopySelf(other); |
---|
| 35 | + super.deepCopyNode(other); |
---|
35 | 36 | Superellipsoid s = (Superellipsoid)other; |
---|
36 | 37 | s.east = east; |
---|
37 | 38 | s.north = north; |
---|
.. | .. |
---|
147 | 148 | cVector du; // = new cVector(); |
---|
148 | 149 | cVector dv; // = new cVector(); |
---|
149 | 150 | |
---|
| 151 | + double uStretch() |
---|
| 152 | + { |
---|
| 153 | + return 2; |
---|
| 154 | + } |
---|
| 155 | + |
---|
| 156 | + double vFlip(double v) |
---|
| 157 | + { |
---|
| 158 | + return 1-v; |
---|
| 159 | + } |
---|
| 160 | + |
---|
150 | 161 | Vertex biparamFunction(double u, double v) |
---|
151 | 162 | { |
---|
152 | 163 | //System.out.println("U = " + u + "; V = " + v); |
---|
.. | .. |
---|
177 | 188 | double sv = signPower(msv, east); |
---|
178 | 189 | double z = radius * cv * cu; |
---|
179 | 190 | double x = radius * cv * su; |
---|
180 | | - double y = radius * sv; |
---|
| 191 | + double y = radius * sv + radius; |
---|
181 | 192 | |
---|
182 | 193 | double dcu = DsignPower(mcu, north) * -msu; |
---|
183 | 194 | double dsu = DsignPower(msu, north) * mcu; |
---|
.. | .. |
---|
315 | 326 | |
---|
316 | 327 | double east; |
---|
317 | 328 | double north; |
---|
318 | | - double radius = 1; |
---|
| 329 | + double radius = 0.5; |
---|
319 | 330 | private cVector inPnt; |
---|
320 | 331 | } |
---|