From b3ae4e889872ca0b9ca76f1d17b2f0b961226729 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 05 Aug 2019 21:48:55 -0400 Subject: [PATCH] Fix physics UI --- Grid.java | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Grid.java b/Grid.java index 8a2d40b..e8b144a 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(); @@ -59,7 +64,7 @@ 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