Introduction
Introduction Statistics Contact Development Disclaimer Help
tUpdated raytracer for angpos arrays - sphere - GPU-based 3D discrete element m…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit 9c3995cb20c289c1944874fb8371b84d805c9d59
parent e77953a6849f96c4fd2802a7be86c098b23490b3
Author: Anders Damsgaard <[email protected]>
Date: Fri, 12 Oct 2012 10:42:06 +0200
Updated raytracer for angpos arrays
Diffstat:
M raytracer/main.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/raytracer/main.cpp b/raytracer/main.cpp
t@@ -134,21 +134,21 @@ int main(const int argc, const char* argv[])
p[i].x = (float)d; // Typecast to single precision
(void)fread(&d, sizeof(d), 1, fin);
v.x = (float)d;
- for (int j=0; j<3; j++)
+ for (int j=0; j<4; j++)
(void)fread(&blankd, sizeof(blankd), 1, fin);
(void)fread(&d, sizeof(d), 1, fin);
p[i].y = (float)d;
(void)fread(&d, sizeof(d), 1, fin);
v.y = (float)d;
- for (int j=0; j<3; j++)
+ for (int j=0; j<4; j++)
(void)fread(&blankd, sizeof(blankd), 1, fin);
(void)fread(&d, sizeof(d), 1, fin);
p[i].z = (float)d;
(void)fread(&d, sizeof(d), 1, fin);
v.z = (float)d;
- for (int j=0; j<3; j++)
+ for (int j=0; j<4; j++)
(void)fread(&blankd, sizeof(blankd), 1, fin);
// Save velocity vector length
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.