From f9325048496d7cdbcad233f8a6b84c88e79adcc2 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Tue, 17 Sep 2019 20:11:47 -0400 Subject: [PATCH] Rename link2master to link2support. --- Superellipsoid.java | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Superellipsoid.java b/Superellipsoid.java index bef4143..79fdb29 100644 --- a/Superellipsoid.java +++ b/Superellipsoid.java @@ -1,6 +1,7 @@ class Superellipsoid extends Biparam /*Sphere*/ implements java.io.Serializable { - + static final long serialVersionUID = -251688182693574378L; + Superellipsoid() { super(); // false); @@ -29,9 +30,9 @@ return s; } - protected void deepCopySelf(Object3D other) + protected void deepCopyNode(Object3D other) { - super.deepCopySelf(other); + super.deepCopyNode(other); Superellipsoid s = (Superellipsoid)other; s.east = east; s.north = north; @@ -147,6 +148,16 @@ cVector du; // = new cVector(); cVector dv; // = new cVector(); + double uStretch() + { + return 2; + } + + double vFlip(double v) + { + return 1-v; + } + Vertex biparamFunction(double u, double v) { //System.out.println("U = " + u + "; V = " + v); @@ -177,7 +188,7 @@ double sv = signPower(msv, east); double z = radius * cv * cu; double x = radius * cv * su; - double y = radius * sv; + double y = radius * sv + radius; double dcu = DsignPower(mcu, north) * -msu; double dsu = DsignPower(msu, north) * mcu; @@ -315,6 +326,6 @@ double east; double north; - double radius = 1; + double radius = 0.5; private cVector inPnt; } -- Gitblit v1.6.2