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. --- Grid.java | 25 ++++++++++++++++++++----- 1 files changed, 20 insertions(+), 5 deletions(-) diff --git a/Grid.java b/Grid.java index 8a2d40b..97d7ca9 100644 --- a/Grid.java +++ b/Grid.java @@ -4,6 +4,11 @@ Grid() { + this(36, 36); + } + + Grid(int u, int v) + { super(false); //this(true); //} @@ -12,8 +17,8 @@ //{ inPnt = new cVector(); name = "Grid"; - uDivs = 35; - vDivs = 34; + uDivs = u; + vDivs = v; minUDivs = 1; minVDivs = 1; center = new cVector(); @@ -32,9 +37,9 @@ return e; } - protected void deepCopySelf(Object3D other) + protected void deepCopyNode(Object3D other) { - super.deepCopySelf(other); + super.deepCopyNode(other); Grid e = (Grid)other; e.center = new cVector(); LA.vecCopy(center, e.center); @@ -57,9 +62,19 @@ */ } + double uStretch() + { + return 1; + } + + double vFlip(double v) + { + return 1-v; + } + Vertex biparamFunction(double u, double v) { - Vertex temp = new Vertex((2*v-1)*radius*8, 0 /*-radius,*/, (2*u-1)*radius*8); + Vertex temp = new Vertex((2*v-1)*radius*4, 0 /*-radius,*/, (2*u-1)*radius*4); temp.norm = LA.newVector(0,1,0); return temp; } -- Gitblit v1.6.2