worked on 2D/3D raytracing

adjusted BVH
improved 2D/3D BVH
new bounding volumes
new test cases
renamed some test-cases for grouping reasons
made GPC header-only using slight adjustments
This commit is contained in:
2017-09-13 08:08:00 +02:00
parent c19d18a3a6
commit 686151b511
38 changed files with 1257 additions and 253 deletions

View File

@@ -1,5 +1,5 @@
#ifndef SPHERE3_H
#define SPHERE3_H
#ifndef GEO_SPHERE3_H
#define GEO_SPHERE3_H
#include "Point3.h"
#include "Ray3.h"
@@ -172,7 +172,7 @@ public:
// center is within both ends, so is the radius
Point3 newCen = (out1 + out2) / 2;
float newRad = out1.getDistance(out2) / 2 * 1.001; // slightly larger to prevent rounding issues
float newRad = out1.getDistance(out2) / 2 * 1.0001; // slightly larger to prevent rounding issues
Sphere3 res(newCen, newRad);
// check
@@ -185,4 +185,4 @@ public:
};
#endif // SPHERE3_H
#endif // GEO_SPHERE3_H