Commit 244ebc3b authored by Aaron Grabowy's avatar Aaron Grabowy
Browse files

Updated tg after fixing some triangle functions

parent f4fc2c64
Pipeline #13576 failed with stage
in 6 minutes and 15 seconds
typed-geometry @ 20a2a44c
Subproject commit 975139e586166d9893b05af72e8e46430b088f18
Subproject commit 20a2a44c1b70ec06462264e1e7f7ee761df644af
......@@ -2,9 +2,7 @@
#include <typed-geometry/tg-std.hh>
#include <iostream>
TG_FUZZ_TEST_MAX_ITS(TypedGeometry, Project, 20)
TG_FUZZ_TEST_MAX_ITS_MAX_CYCLES(TypedGeometry, Project, 25, 100'000'000'000)
{
auto const test_obj = [&rng](auto p, auto o) {
auto proj = project(p, o);
......@@ -147,10 +145,8 @@ TG_FUZZ_TEST_MAX_ITS(TypedGeometry, Project, 20)
test_obj_and_boundary(p4, tg::sphere4(pos40, r));
test_obj_and_boundary(p3, tg::sphere2in3(pos30, r, n3));
// triangle
(void)pos22;
(void)pos32;
// FIXME: test_obj(p2, tg::triangle2(pos20, pos21, pos22));
// FIXME: test_obj(p3, tg::triangle3(pos30, pos31, pos32));
test_obj(p2, tg::triangle2(pos20, pos21, pos22));
test_obj(p3, tg::triangle3(pos30, pos31, pos32));
// test_obj(p4, tg::triangle4(pos40, pos41, pos42));
}
......
......@@ -326,7 +326,7 @@ TG_FUZZ_TEST_MAX_ITS(TypedGeometry, UniformCapsule, 10)
{
auto tolerance = 0.01f;
auto range3 = tg::aabb3(tg::pos3(-10), tg::pos3(10));
auto r = uniform(rng, 0.0f, 10.0f);
auto r = uniform(rng, 1.0f, 10.0f);
auto pos0 = uniform(rng, range3);
auto pos1 = uniform(rng, range3);
auto n = normalize(pos1 - pos0);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment