diff options
author | Vojtech Bubnik <bubnikv@gmail.com> | 2020-05-21 12:04:53 +0300 |
---|---|---|
committer | Vojtech Bubnik <bubnikv@gmail.com> | 2020-05-22 10:29:21 +0300 |
commit | 2b8f655020adeab5d5d679fec19bf4f73a8ab16a (patch) | |
tree | 12f9a3a549b7fee4aed1d3a5e2a566b2bee93710 /tests | |
parent | eeb9590d2865bca9099441ca5d76eba904360ea5 (diff) |
WIP AABBIndirect: Documentation, polishing.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libslic3r/test_aabbindirect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libslic3r/test_aabbindirect.cpp b/tests/libslic3r/test_aabbindirect.cpp index 017df9307..c0792a943 100644 --- a/tests/libslic3r/test_aabbindirect.cpp +++ b/tests/libslic3r/test_aabbindirect.cpp @@ -11,7 +11,7 @@ TEST_CASE("Building a tree over a box, ray caster and closest query", "[AABBIndi TriangleMesh tmesh = make_cube(1., 1., 1.); tmesh.repair(); - auto tree = AABBTreeIndirect::build_aabb_tree(tmesh.its.vertices, tmesh.its.indices); + auto tree = AABBTreeIndirect::build_aabb_tree_over_indexed_triangle_set(tmesh.its.vertices, tmesh.its.indices); REQUIRE(! tree.empty()); igl::Hit hit; @@ -39,7 +39,7 @@ TEST_CASE("Building a tree over a box, ray caster and closest query", "[AABBIndi size_t hit_idx; Vec3d closest_point; - double squared_distance = AABBTreeIndirect::squared_distance( + double squared_distance = AABBTreeIndirect::squared_distance_to_indexed_triangle_set( tmesh.its.vertices, tmesh.its.indices, tree, Vec3d(0.3, 0.5, -5.), @@ -49,7 +49,7 @@ TEST_CASE("Building a tree over a box, ray caster and closest query", "[AABBIndi REQUIRE(closest_point.y() == Approx(0.5)); REQUIRE(closest_point.z() == Approx(0.)); - squared_distance = AABBTreeIndirect::squared_distance( + squared_distance = AABBTreeIndirect::squared_distance_to_indexed_triangle_set( tmesh.its.vertices, tmesh.its.indices, tree, Vec3d(0.3, 0.5, 5.), |