Normand Briere
2019-08-17 5892f05411c3d4dce2d8a59e0966dc2e1843a971
Superellipsoid.java
....@@ -1,6 +1,7 @@
11 class Superellipsoid extends Biparam /*Sphere*/ implements java.io.Serializable
22 {
3
-
3
+ static final long serialVersionUID = -251688182693574378L;
4
+
45 Superellipsoid()
56 {
67 super(); // false);
....@@ -147,6 +148,16 @@
147148 cVector du; // = new cVector();
148149 cVector dv; // = new cVector();
149150
151
+ double uStretch()
152
+ {
153
+ return 2;
154
+ }
155
+
156
+ double vFlip(double v)
157
+ {
158
+ return 1-v;
159
+ }
160
+
150161 Vertex biparamFunction(double u, double v)
151162 {
152163 //System.out.println("U = " + u + "; V = " + v);
....@@ -177,7 +188,7 @@
177188 double sv = signPower(msv, east);
178189 double z = radius * cv * cu;
179190 double x = radius * cv * su;
180
- double y = radius * sv;
191
+ double y = radius * sv + radius;
181192
182193 double dcu = DsignPower(mcu, north) * -msu;
183194 double dsu = DsignPower(msu, north) * mcu;
....@@ -315,6 +326,6 @@
315326
316327 double east;
317328 double north;
318
- double radius = 1;
329
+ double radius = 0.5;
319330 private cVector inPnt;
320331 }