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.

---
 Sphere.java |   26 +++++++++++++++++++-------
 1 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/Sphere.java b/Sphere.java
index 1358cad..af49eba 100644
--- a/Sphere.java
+++ b/Sphere.java
@@ -13,8 +13,8 @@
         this(false);
 
         radius = 0.05f;
-        uDivs = 7;
-        vDivs = 6;
+        uDivs = 11; // 7;
+        vDivs = 4; // 6;
 
         center = new cVector();
         center.set(x, y, z);
@@ -44,12 +44,12 @@
         inPnt = new cVector();
         name = "Sphere";
         //uDivs = vDivs = 16;
-        uDivs = 8; // 19;
-        vDivs = 8; // 18;
+        uDivs = 12; // 8; // 19;
+        vDivs = 6; // 8; // 18;
         minUDivs = 3;
         minVDivs = 2;
         //center = new cVector();
-        radius = 1;
+        radius = 0.5;
         if (recalc)
         {
             retile();
@@ -95,9 +95,9 @@
         return e;
     }
 
-    protected void deepCopySelf(Object3D other)
+    protected void deepCopyNode(Object3D other)
     {
-        super.deepCopySelf(other);
+        super.deepCopyNode(other);
         Sphere e = (Sphere) other;
         if (center != null)
         {
@@ -121,6 +121,16 @@
         buffer.append("}\n");
     }
 
+    double uStretch()
+    {
+        return 2;
+    }
+    
+    double vFlip(double v)
+    {
+        return 1-v;
+    }
+    
     Vertex biparamFunction(double u, double v)
     {
         double uAng = LA.toRadians(u * 360);
@@ -137,6 +147,8 @@
             LA.vecCopy(temp.norm, temp/*.pos*/);
         LA.vecNormalize(temp.norm);
         
+        temp.y += radius;
+        
         return temp;
     }
 

--
Gitblit v1.6.2