Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WebARforCIFT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Manuel Amesberger
WebARforCIFT
Commits
1196f37d
Commit
1196f37d
authored
5 years ago
by
Manuel Amesberger
Browse files
Options
Downloads
Patches
Plain Diff
Added some neat description for parameters
parent
53351aef
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
www/WebDevPlayground/three.js/examples/ARforCIFT.js
+18
-10
18 additions, 10 deletions
www/WebDevPlayground/three.js/examples/ARforCIFT.js
with
18 additions
and
10 deletions
www/WebDevPlayground/three.js/examples/ARforCIFT.js
+
18
−
10
View file @
1196f37d
...
...
@@ -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
=
[];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment