From 1196f37d5f9fc44afebe865c7ff64daecbfbc7d8 Mon Sep 17 00:00:00 2001 From: Manuel Amesberger <manuel.amesberger@stud.th-deg.de> Date: Fri, 31 Jan 2020 22:47:55 +0100 Subject: [PATCH] Added some neat description for parameters --- .../three.js/examples/ARforCIFT.js | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/www/WebDevPlayground/three.js/examples/ARforCIFT.js b/www/WebDevPlayground/three.js/examples/ARforCIFT.js index dd83056..639867c 100644 --- a/www/WebDevPlayground/three.js/examples/ARforCIFT.js +++ b/www/WebDevPlayground/three.js/examples/ARforCIFT.js @@ -4,7 +4,7 @@ var vectFieldDat = "http://localhost:8081/arrows" //URL of the vectorfile in json-format - // =====Default Offset parameters===== + // =====Offset range parameters===== var offsetXmin = -1.0; var offsetXmax = 1.0; var offsetYmin = -1.0; @@ -16,18 +16,22 @@ var updateFrequency = 1000; // =====Arrow depiction parameters===== - var arrowMaxLength = 2.0; + var arrowMaxLength = 2.0; //default values of arrow length var arrowMinLength = 0.5; - var maxRange = 4.0; - var minRange = 0.0; + var maxRange = 4.0; //defines the range wihich can be + var minRange = 0.0; //choosen for the range + //edit this to fit your needs - var minColor = 'red'; - var maxColor = 'blue'; + var minColor = 'red'; //color of too small arrows + var maxColor = 'blue'; //color of too large arrows - var hexMax = 255; - var pivotPoint = 50; - var hexDivisor = hexMax / pivotPoint + var hexMax = 255; //max hex value of colors + var pivotPoint = 50; //precentage at which color gradient + //switches + + var hexDivisor = hexMax / pivotPoint //value needed for correct + //calculation of color // ====Default sizes for non depictable arrows ====== var nonArrowLength = 0.1; @@ -43,7 +47,11 @@ this.arrowMinLength = 0.5; }; - var vecDataTransferHelper; + var vecDataTransferHelper; //variable to transfer vectordata + //from read method to update method + //(porbably not optimal and needs + //revisiting + ) var oldVecArrayLength = 0; var vectorlist = []; -- GitLab