]> git.tdb.fi Git - libs/math.git/commit
Fix composite shape ray intersection logic
authorMikko Rasa <tdb@tdb.fi>
Mon, 17 Apr 2017 19:27:29 +0000 (22:27 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 17 Apr 2017 19:27:29 +0000 (22:27 +0300)
commit7de28b9c89ca4554f5c12746f481f5b385529479
treeec28a795aff5e98178fb0d4cfa6e94d3039ba69a
parent93e3f3af03f911396c678a2356a54dc9885b21f8
Fix composite shape ray intersection logic

The test for start_nesting coalescence was written the wrong way, causing
intersection shapes to return spurious hits when the ray started inside
some part of the shape.  Presumably union shapes did not return hits in
some cases when they should.
source/geometry/compositeshape.h