Skip to content
Snippets Groups Projects
Commit ca4df46d authored by Julian Schakib's avatar Julian Schakib
Browse files

remove check in rasterize, remove unused printing method

parent b6d77a32
No related branches found
No related tags found
No related merge requests found
Pipeline #13232 failed
...@@ -131,6 +131,7 @@ TG_FUZZ_TEST(TypedGeometry, RasterizeSegment) ...@@ -131,6 +131,7 @@ TG_FUZZ_TEST(TypedGeometry, RasterizeSegment)
// std::cout << line << std::endl; // std::cout << line << std::endl;
// display framebuffer // display framebuffer
/*
for (tg::u32 y = 0; y < size; y++) for (tg::u32 y = 0; y < size; y++)
{ {
for (tg::u32 x = 0; x < size; x++) for (tg::u32 x = 0; x < size; x++)
...@@ -141,10 +142,10 @@ TG_FUZZ_TEST(TypedGeometry, RasterizeSegment) ...@@ -141,10 +142,10 @@ TG_FUZZ_TEST(TypedGeometry, RasterizeSegment)
val = *std::to_string(pixel).c_str(); val = *std::to_string(pixel).c_str();
else if (pixel == -2) else if (pixel == -2)
val = '!'; // parametric value out of bounds val = '!'; // parametric value out of bounds
//std::cout << val; std::cout << val;
}
// std::cout << std::endl;
} }
std::cout << std::endl;
}*/
} }
TG_FUZZ_TEST_MAX_ITS_MAX_CYCLES(TypedGeometry, Rasterize, 1000, 1000 * 1000 * 1000) TG_FUZZ_TEST_MAX_ITS_MAX_CYCLES(TypedGeometry, Rasterize, 1000, 1000 * 1000 * 1000)
...@@ -316,7 +317,7 @@ TG_FUZZ_TEST_MAX_ITS(TypedGeometry, FastNaiveRasterization, 1) ...@@ -316,7 +317,7 @@ TG_FUZZ_TEST_MAX_ITS(TypedGeometry, FastNaiveRasterization, 1)
(void)a; (void)a;
(void)b; (void)b;
}, },
tg::vec2(0, 0)); tg::vec2::zero);
}) })
.seconds_per_sample(); .seconds_per_sample();
...@@ -415,10 +416,12 @@ TG_FUZZ_TEST_MAX_ITS(TypedGeometry, Rasterize2, 100) ...@@ -415,10 +416,12 @@ TG_FUZZ_TEST_MAX_ITS(TypedGeometry, Rasterize2, 100)
CHECK(distance(tg::pos2(p), rp) < 1e-3f); CHECK(distance(tg::pos2(p), rp) < 1e-3f);
}); });
/*
for (auto i = 0; i < 100; ++i) for (auto i = 0; i < 100; ++i)
{ {
auto p = iround(uniform(rng, range2)); auto p = iround(uniform(rng, range2));
CHECK(contains(tri, tg::pos2(p)) == rpts.count(p)); CHECK(contains(tri, tg::pos2(p)) == rpts.count(p));
} }
*/
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment