Commit 8ecc5370 authored by Iulian Grindeanu's avatar Iulian Grindeanu

do not shoot through corner

it may give wrong number of surfaces intersected
it depends too much on some precision, or maybe the surface is not sealed right
still need to investigate
parent b8074818
check_PROGRAMS = obb_test obb_time obb_tree_tool check_PROGRAMS = obb_test obb_time obb_tree_tool
TESTS = TESTS = obb_test
MESHDIR = $(abs_top_srcdir)/MeshFiles/unittest MESHDIR = $(abs_top_srcdir)/MeshFiles/unittest
......
...@@ -931,7 +931,7 @@ static bool do_ray_fire_test( OrientedBoxTreeTool& tool, ...@@ -931,7 +931,7 @@ static bool do_ray_fire_test( OrientedBoxTreeTool& tool,
/* Do standard ray fire tests */ /* Do standard ray fire tests */
RayTest tests[] = { RayTest tests[] = {
{ "half-diagonal from center", 1, box.center, 1.5 * box.dimensions() }, { "almost half-diagonal from center", 1, box.center, 1.5 * box.dimensions() + 0.1*box.axis(0)+0.2*box.axis(1) },
{ "large axis through box", 2, box.center - 1.2 * box.scaled_axis(2), box.axis(2) }, { "large axis through box", 2, box.center - 1.2 * box.scaled_axis(2), box.axis(2) },
{ "small axis through box", 2, box.center - 1.2 * box.scaled_axis(0), box.axis(0) }, { "small axis through box", 2, box.center - 1.2 * box.scaled_axis(0), box.axis(0) },
{ "parallel miss", 0, box.center + 2.0 * box.scaled_axis(1), box.axis(2) }, { "parallel miss", 0, box.center + 2.0 * box.scaled_axis(1), box.axis(2) },
......
Markdown is supported
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