From 537f4ac57ae2b34f0a04fa63874c8ca6534c9a6d Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Tue, 20 Aug 2019 02:31:25 -0400 Subject: [PATCH] Faster JPG reader. --- Grid.java | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Grid.java b/Grid.java index f607c0d..f4023e6 100644 --- a/Grid.java +++ b/Grid.java @@ -4,7 +4,7 @@ Grid() { - this(35, 34); + this(36, 36); } Grid(int u, int v) @@ -62,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