Browse Source

simplex_interpolator: adding std::cout test… for realz this time

undefined
Guillaume Bittoun Sam Hocevar <sam@hocevar.net> 10 years ago
parent
commit
49e9971183
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      src/t/math/simplex_interpolator.cpp

+ 9
- 1
src/t/math/simplex_interpolator.cpp View File

@@ -204,7 +204,7 @@ lolunit_declare_fixture(SimplexInterpolatorTest)
check_index_ordering<10>();
}

void check_sample_creation_order2()
lolunit_declare_test(CheckSampleOrder2)
{
static int gen = 12345678;

@@ -224,6 +224,14 @@ lolunit_declare_fixture(SimplexInterpolatorTest)

simplex_interpolator<2> s;
s.SetGradients(gradients);

for (int i = 0 ; i < 10 ; ++i)
{
for (int j = 0 ; j < 10 ; ++j)
{
std::cout << s.Interp(vec_t<float, 2>({i, j})) << std::endl;
}
}
}

#if 0


Loading…
Cancel
Save