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. --- Torus.java | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Torus.java b/Torus.java index 4573395..7bf9ec5 100644 --- a/Torus.java +++ b/Torus.java @@ -8,8 +8,8 @@ { inPnt = new cVector(); name = "Torus"; - uDivs = 35; // 64; - vDivs = 19; // 24; + uDivs = 61; // 35; // 64; + vDivs = 21; // 19; // 24; minUDivs = 3; minVDivs = 3; retile(); @@ -25,9 +25,9 @@ return t; } - protected void deepCopySelf(Object3D other) + protected void deepCopyNode(Object3D other) { - super.deepCopySelf(other); + super.deepCopyNode(other); Torus t = (Torus)other; t.major = major; t.minor = minor; @@ -56,6 +56,11 @@ buffer.append("}\n"); } + double uStretch() + { + return 6; // Actually 6.28 (I think) + } + Vertex biparamFunction(double u, double v) { if (u == 1) @@ -87,6 +92,9 @@ //temp.pos = tPos; // useless new temp.norm = tNorm; LA.vecNormalize(temp.norm); + + temp.y += minor; + return temp; } -- Gitblit v1.6.2