1. Alexander Konovalov
  2. poissonraytracer

Commits

kazeevn  committed e4d12fd

Increased floatEpsilon by a factor of 100.

  • Participants
  • Parent commits 07f1cc9
  • Branches default

Comments (0)

Files changed (1)

File core/sphere.cpp

View file
 #include <cstdlib>
 #include <algorithm>
 #include <limits>
-#include <iostream>
 #include "core/mpi_assert.h"
 
 namespace {
-const float kFloatEpsilon = std::numeric_limits<float>::epsilon();
+const float kFloatEpsilon = 100 * std::numeric_limits<float>::epsilon();
 }
 
 void MakeTwoOrthogonalVectors(
   assert(fabs(x.dot(vec)) < kFloatEpsilon);
   assert(fabs(y.dot(vec)) < kFloatEpsilon);
 
-  if (fabs(x.squaredNorm() - 1) >= kFloatEpsilon)
-    std::cout << vec << "\n x \n" << x << "\n y \n" << y << "\n angle \n" << angle <<
-        "\n epsilon \n" << kFloatEpsilon <<  "\n cdot \n" << x.dot(y) <<
-        "\n x_normed \n" << x.normalized() << "\n y_normed \n" << y.normalized() <<
-        "\n cdot \n" << x.normalized().dot(y.normalized()) << "\n aa \n";// << aa;
-
   assert(fabs(x.squaredNorm() - 1) < kFloatEpsilon);
   assert(fabs(y.squaredNorm() - 1) < kFloatEpsilon);