From e96132853038f55cdb6e27f116852cff0e813f00 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Sun, 22 Sep 2019 09:27:26 -0400
Subject: [PATCH] Replace on make off.

---
 BezierPatch.java |   30 +++++++++++++++++-------------
 1 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/BezierPatch.java b/BezierPatch.java
index 294bdec..2b6e438 100644
--- a/BezierPatch.java
+++ b/BezierPatch.java
@@ -43,9 +43,9 @@
         return l;
     }
 
-    protected void deepCopySelf(Object3D other)
+    protected void deepCopyNode(Object3D other)
     {
-        super.deepCopySelf(other);
+        super.deepCopyNode(other);
         BezierPatch bp = (BezierPatch)other;
 		bp.depth = depth;
         int count = ctrlPnts.size();
@@ -139,39 +139,43 @@
             Point prev = new Point(0, 0);
             Point curr = new Point(0, 0);
             Rectangle dummy = new Rectangle();
-            calcHotSpot(sample, info, prev, dummy);
+            calcHotSpot(sample, //info,
+                    prev, dummy);
 			sample = ((Sphere)ctrlPnts.get(i)).getCenter();
-            calcHotSpot(sample, info, curr, dummy);
+            calcHotSpot(sample, //info,
+                    curr, dummy);
             info.g.drawLine(prev.x, prev.y, curr.x, curr.y);
             prev.x = curr.x;
             prev.y = curr.y;
         }
     }
 
-    void drawEditHandles(ClickInfo info, int level)
+    void drawEditHandles(//ClickInfo info,
+            int level)
     {
-        info.g.setColor(Color.red);
+        clickInfo.g.setColor(Color.red);
         int count = ctrlPnts.size();
         for (int i=0; i < count; i++)
         {
             cVector p = ((Sphere)ctrlPnts.elementAt(i)).getCenter();
-            Rectangle spot = calcHotSpot(p, info);
-            info.g.fillRect(spot.x, spot.y, spot.width, spot.height);
+            Rectangle spot = calcHotSpot(p); //, info);
+            clickInfo.g.fillRect(spot.x, spot.y, spot.width, spot.height);
         }
 
     }
 
-    boolean doEditClick(ClickInfo info, int level)
+    boolean doEditClick(//ClickInfo info,
+            int level)
     {
-        startX = info.x;
-        startY = info.y;
+        startX = clickInfo.x;
+        startY = clickInfo.y;
         int nPoints = ctrlPnts.size();
         hitSomething = false;
         for (int i=0; i < nPoints; i++)
         {
             cVector p = ((Sphere)ctrlPnts.elementAt(i)).getCenter();
-            Rectangle r = calcHotSpot(p, info);
-            if (r.contains(info.x, info.y))
+            Rectangle r = calcHotSpot(p); //, clickInfo);
+            if (r.contains(clickInfo.x, clickInfo.y))
             {
                 hitSomething = true;
                 hitIndex = i;

--
Gitblit v1.6.2