tadd parameter to scale line thicknesses - sphere - GPU-based 3D discrete eleme… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 264d5babe736a97258c7b97f282c2b253d5693a3 | |
parent 4c79e2fe81254dd549321cac5be97dad456a8106 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 24 Sep 2014 10:28:49 +0200 | |
add parameter to scale line thicknesses | |
Diffstat: | |
M src/sphere.cpp | 4 +++- | |
1 file changed, 3 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/src/sphere.cpp b/src/sphere.cpp | |
t@@ -740,6 +740,8 @@ void DEM::forcechains(const std::string format, const int … | |
unsigned int n, i, j; | |
Float delta_n, f_n, ratio; | |
std::string color; | |
+ //const double thickness_scaling = 8.0; | |
+ const double thickness_scaling = 16.0; | |
for (n=0; n<ij.size(); ++n) { | |
// Get contact particle indexes | |
t@@ -789,7 +791,7 @@ void DEM::forcechains(const std::string format, const int … | |
cout << k.x[j].y, ','; | |
cout << k.x[j].z; | |
cout << " nohead " | |
- << "lw " << ratio * 8.0 | |
+ << "lw " << ratio * thickness_scaling | |
<< " lc palette cb " << f_n | |
<< endl; | |
} |